import java.util.*; class ThreeNumbers{ public static void main (String [] args) { int one; int two; int three; Scanner s = new Scanner (System.in); System.out.println("Enter the first number:"); one = s.nextInt(); System.out.println("Enter the second number:"); two = s.nextInt(); System.out.println("Enter the third number:"); three = s.nextInt(); if (one < two && one < three) System.out.println("The smallest number is " + one); else if (two < three) System.out.println("The smallest number is " + two); else System.out.println("The smallest number is " + three); } } *** import java.util.*; class PrintTriangle { public static void main (String [] args) { int line; int i=0; int j=0; int blank2; Scanner s = new Scanner (System.in); System.out.println("How many rows do you want?"); line = s.nextInt(); int blank = line - 1; int star = 2 * line - 1; while (i < star) { j = i; blank2 = blank; do { System.out.print(" "); blank2--; } while (blank2 >= 0); do { System.out.print("*"); j--; } while (j >= 0); System.out.println(); i+=2; blank--; } } }