โ Back to Printing
Question 281
Add Two Input Numbers
Add Two Input Numbers
Read two integers from input using aScannerand print their sum on its own line. For input4 5the output is: 9 UsenextInt()twice, then printa + b.
Expected Output:
9
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.