Run Program ❯
Python Home
❯
Run Code
Change Orientation
# This program calculates the area of a rectangle # and displays the result to the user. ''' The formula used: Area = width × height Both width and height are provided by the user. ''' # Getting input from the user width =34 height =56 # Calculating area area = width * height """ Now we display the area to the user. This print statement completes the program. """ print("The area of the rectangle is:", area)