CJCoding With Joseph
15free / daySign inCreate account

Area From Width And Height

Ask for the width and the height of a rectangle with the prompts Width? and Height? (each ending in a space), convert both with int() and print the area in the form Area: <value>. Input: two lines, one integer each. The prompts are part of the output and input() does not move to a new line, so both prompts and the area appear on one output line, as shown in Expected Output.

Expected Output:

Width? Height? Area: 12

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
User Input
📥 Auto-Input:
3\n4\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.