Loading Posts...

Write a Java Program to find area of rectangle.

Write a Java Program to find area of rectangle.
import java.io.*;
import java.util.*;
public class area
{
public static void main(string arg[])
{
int l,b,area;
scanner sc=new scanner(system.in);
system.out.println("enter l=");
l=sc.nextInt();
system.out.println("enter b=");
b=sc.nextInt();
area=l*b;
system.out.println("result="+area);
}
}

 

krish..

The author didnt add any Information to his profile yet

Leave a Comment

Loading Posts...
Inline
Inline