Write a program to calculate area of a rectangle using any two arbitrary numbers as length and breadth. class 9
Answers
Answered by
0
Answer:
Means our computer is receiving data from internat
Answered by
0
import java.util.Scanner;
public class rectangle
{
public static void main (String [ ] args)
{
Scanner scan=new Scanner (System.in);
System.out.println ("ENTER THE LENGTH");
double len=scan.nextDouble( );
System.out.println ("ENTER THE BREADTH");
double bre=scan.nextDouble( );
double area=len*bre;
System.out.println ("The area of the rectangle is : "+area);
}
}
Similar questions