Computer Science, asked by avaniayana08, 7 months ago

Write a program to find the area of rectangle by
taking the length and breath of the rectangle as
input from user and print the result​

Answers

Answered by keshavrawat2005
1

Answer:import java.util.Scanner;

public class rectangle_area

{

public static void main(String args[])

{

Scanner sc = new Scanner(System.in);

System.out.println("PLease enter length of rectangle :" );

double l = sc.nextDouble();

System.out.println("PLease enter breadth of rectangle :" );

double b = sc.nextDouble();

double area = l*b;

System.out.println("Area of rectangle is " + area + "m");

}

}

Explanation:

Answered by puneetdevman
2

Answer:

program here

Explanation:

x=input ("Enter length")

y=input("Enter breadth")

z=x*y

print("Area="+z)

Similar questions