Exercise: Greater Than

Write a console program that asks for two numbers and then tells the user which number is greater.

For example (user input in green):

First number:
4
Second number:
7
7 is greater than 4.

Hand in instructions

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