Question #291428

write a program that:

  • asks the user to input the width and height of a rectangle
  • calculates the area
  • outputs the result

Expert's answer

w=float(input('Please input the width of rectangle: '))
h=float(input('Please input the height of rectangle: '))
area=w*h
print('Area is: ', area)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS