Challenge: Ask Favorite Number

Ask the user for their favorite number:

  • If it’s 7, print "Lucky!".

  • If it’s even, print "Nice and even".

  • Otherwise, print "Interesting choice".

Challenge: Ask Favorite Number

Ask the user for their favorite number:

  • If it’s 7, print "Lucky!".

  • If it’s even, print "Nice and even".

  • Otherwise, print "Interesting choice".

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        // Write your code here
    }
}
Project: Ask the user for their favourite number