Computer Science, asked by rahul9c26stc, 8 months ago

write a program to calculate the area of a rectangle by taking no. from the users. ​

Answers

Answered by amityadav36275
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 siivansh
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