In a make task you use the skills you have learned to create a program from scratch. There is no starter code: you begin with an empty editor.
Write a program that calculates the area of a rectangle.
print followed by
an input() that collects the answer. Convert both answers to whole numbers
and store them in variables.The area is 15
Both measurements are whole numbers, so the area is a whole number too. The area of a rectangle is its height multiplied by its width.
Ask the two questions with their own print, exactly as written, in this order:
Enter the height:Enter the width:The questions are part of the checked output, so spelling, capital letters and punctuation count.
Input:
5
3
Output:
Enter the height:
Enter the width:
The area is 15
Input:
37
128
Output:
Enter the height:
Enter the width:
The area is 4736
Make sure that you check for the following things:
= for assignment.+ to add, - to subtract, * to
multiply, / to divide with a decimal result, and // to divide and keep
only the whole number part.input, and the second closing bracket
that int(input()) needs.print is wrapped in str().