write a program to accept the sides of a rectangle and calculate its area
Answers
Answered by
2
Required Program
Width = float(input('Please Enter the WIDTH of a Rectangle: '))
Height = float(input('Please Enter the height of a Rectangle: '))
Area = Width * Height
print("Area of a Rectangle is: " Area)
- hope it helps...
Attachments:
Answered by
1
import java.util.*;
public class Area
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int z,x,a;
System.out.println("Enter the sides of the rectangle");
z=in.nextInt();
x=in.nextInt();
a=z*x;
System.out.println("The area is"+a);
}
}
Similar questions
Accountancy,
5 months ago
Math,
5 months ago
Science,
5 months ago
Biology,
11 months ago
Computer Science,
11 months ago
Math,
1 year ago
Physics,
1 year ago
Science,
1 year ago