Exercise: Addition

Write a console program that asks for two numbers and then prints their sum.

For example (user input in green):

First number:
3
Second number:
9
3 + 9 = 12

Hand in instructions

  1. Make sure your program runs correctly.
  2. Hand in your program by uploading Main.java to Moodle.