learning-java-2825378
learning-java-2825378 copied to clipboard
03 03b
package com.company; import java.util.Scanner;
public class Main {
public static void main(String[] args) {
System.out.println("Pick a number between 1 and 10 ");
Scanner scanner = new Scanner(System.in);
int inputtedNum =scanner.nextInt();
if (inputtedNum < 5 ) {
System.out.println("Enjoy the good luck a friend brings you ");
} else {
System.out.println( "Your shoe selection will make you very happy today" );
}
}
}