Input:
Width = 10, Height = 5
Output:
Area of Rectangle = Width * Height
= 10 * 5
= 50
Python Program
width=5
height=10
area=width*height
print("Area of rectangle="+str(area))
height=10
area=width*height
print("Area of rectangle="+str(area))
Output:
Area of rectangle=50
0 comments:
Post a Comment