Computer Science, asked by 6Shivam92, 1 year ago

WAP to display area and perimeter of a rectangle.

Answers

Answered by RikCena
3
class an
{
public static void main(int l,int b)
{
int area=l*b;
int perimeter=2*(l+b);
System.out.println("AREA="+area);
System.out.println("PERIMETER"+perimeter);
}
}
Answered by gaganadithyareddy9
1

Answer:

Hey! Here is your code in python...

x = float(input("Enter length of rectangle: "))

y = float(input("Enter breadth of rectangle: "))

print("Area of rectangle = ", x*y)

print("Perimeter of rectangle = ", 2*(x+y))

# HOPE THIS HELPS!!

Similar questions