Assignemnt #75 and Right Triangle Checker Code /// Name: Yordan Rashkov /// Period: 7 /// Program Name: Right Triangle Checker /// File Name: RightTriangleChecker.java /// Date Finished: 2/1/2016 import java.util.Scanner; public class RightTriangleChecker { public static void main( String [] args ) { Scanner keyboard = new Scanner(System.in); int integer1, integer2, integer3; System.out.println ( " Right Triangle Checker " ); System.out.println(); System.out.println(); System.out.println ( " Side 1: " ); integer1 = keyboard.nextInt(); System.out.println ( " Side 2: " ); integer2 = keyboard.nextInt(); while ( integer1 < integer2 ) { System.out.println( " Caution! " + integer2 + " is greater than " + integer1 + " . "); integer2 = keyboard.nextInt(); } System.out.println( "Side 3: " ); integer3 = keyboard.nextInt(); while ( integer3 < integer2 ) { System.out.println( " Caution! " + integer2 + " is greater than " + integer3 + " ."); integer3 = keyboard.nextInt(); } System.out.println( " Your three sides are " + integer1 + " , " + integer2 + " and " + integer3 + " !"); if ( integer1 * integer1 == ( integer2 * integer2) + ( integer3 * integer3 ) ) { System.out.println( " These sides *do* make a right triangle. Yippy-skippy! " ); } else { System.out.println( " NO! These sides do not form a right triangle. " ); } } }