Computer Science, asked by amal2915, 5 months ago

write a python program to calculate the area of a rectangle and square using function​

Answers

Answered by samriyaleelu
0

Answer:

ggggggggghhff jjfdjjd xbhdjdj

Answered by kookiesandmilk
0

Answer:

Square

s=float(input("Enter side"))

area=s*s

print("area of square is",area)

Output

Enter side 4

area of square is 16

Rectangle

l=float(input("Enter length"))

b=float(input("Enter breadth"))

area=l*b

print("Area of rectangle is",area)

Output

Enter length 5

Enter breadth 3

Area of rectangle is 15

Similar questions