write a program to calculate the area of a rectangle by taking no. from the users.
Answers
Answered by
1
Answer:
please mark in brainliest
Explanation:
import java. util. Scanner; class AreaOfRectangle.
public static void main(String args[]) {
Scanner s= new Scanner(System. in);
double l= s. nextDouble(); System. out. println("Enter the breadth:");
double b= s. nextDouble();
System. out. println("Area of Rectangle is: " + area); }
Answered by
2
Answer:
Let us take one input x and other input y
then, using Python , we can easily calculate area of the rectangle.
Explanation:
I will use python to solve this.
>>> print(int(input())) = x
>>> print(int(input())) = y
>>> print("area of rectangle is")
>>> print(x*y)
Similar questions
English,
4 months ago
Social Sciences,
4 months ago
Computer Science,
4 months ago
Math,
8 months ago
Physics,
1 year ago
Physics,
1 year ago
Computer Science,
1 year ago