← Back to User Input
Question 254
Sum and Product
Sum and Product
Read two integers, each on its own line. Print their sum on the first line, then print their product on the second line. This combines two calculations from the same pair of inputs. For inputs 3 and 4, the program should print 7 on the first line and 12 on the second line.
Expected Output:
7 12
= 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 · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.