Sum and Product
mediumQuestion 254Read 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, so 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.