#75 and Right Triangle Checker

Code

  /// Name: Josh Bautista
  /// Period: 6
  /// Program Name: Right Triange Checker
  /// File Name: RTChecker.java
  /// Date Finished: 2/26/2016
  
  import java.util.Scanner;

public class RTChecker
{
    public static void main( String[] args )
    {
    Scanner keyboard = new Scanner(System.in);
    int in1, in2, in3;
    
    System.out.print(" Enter three intergers : ");
    System.out.print(" Side 1 : ");
    in1 = keyboard.nextInt();
    System.out.print(" Side 2 : ");
    in2 = keyboard.nextInt();
    while ( in1 > in2 )
    {
    System.out.println( in2 + " is smaller that " + in1 + ". Try again. ");
    in2 = keyboard.nextInt();
    }
    System.out.print(" Side 3 : ");
    in3 = keyboard.nextInt();
    while ( in2 > in3 )
    {
    System.out.println( in2 + " is smaller that " + in3 + ". Try again. ");
    }
    System.out.println(" Your three sides are " + in1 + in2 + in3 + " . ");
    if ( in1 > in2 )
    {
        System.out.println(" These sides do not make a right triangle ");
    }
    else if ( in2 > in3 )
    {
        System.out.println(" These sides do not make a right triangle ");
    }
    else 
    {
        System.out.println(" These sides do make a right triangle ");
    }
        
    }
}
    
    

Picture of the output

Assignment 4