CJCoding With Joseph
15free / daySign inCreate account

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
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 · 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.