write a program in java to calculate the diagonal of a rectangle where Length=20, breadth=10
Answers
Answered by
0
Answer:
idk sorry but make me brainlist
Answered by
3
Answer:
import java.util.Scanner;
class AreaOfRectangle {
public static void main (String[] args)
{
Scanner scanner = new Scanner(System.in);
System.out.println("Enter the length of Rectangle:");
double length = scanner.nextDouble();
System.out.println("Enter the width of Rectangle:");
double width = scanner.nextDouble();
//Area = length*width;
double area = length*width;
System.out.println("Area of Rectangle is:"+area);
}
}
# XxMissMasoomxX01
Similar questions