← Back to User Input
Question 157
Multiply Two Numbers
Multiply Two Numbers
Ask for two whole numbers with the prompts First? and Second? (space after each question mark), multiply them and print Product: <value>. Input: two lines, one integer each. The prompts are part of the output and input() does not add a newline, so both prompts and the product end up on one output line, as shown in Expected Output.
Expected Output:
First? Second? Product: 42= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
User Input
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.