int answer; System.out.print("Enter a number: "); answer = scan.nextInt(); if (answer < 5) if (answer == 1) System.out.println ("Hello"); if (answer = 0) System.out.println("There"); else System.out.println("You"); if (answer > 2) System.out.println("What's"); else System.out.println("Up");
if (num1 < num2 && num1 < num3) min = num1; else if (num2 < num1 && num2 < num3) min = num2; else min = num3;