( --> )

Solution 1 to Typical First Challenge

<?PROGRAM> ->

   // Prompt for three <int>s
      IO.print("Enter three integers:  ");

   // Read the three s
      int n1 = IO.read_int();
      int n2 = IO.read_int();
      int n3 = IO.read_int();

   // Compute the maximum value
      int max = n1;
      if ( n2 >= max ) 
      {
         max = n2;
      };
      if ( n3 >= max ) 
      {
         max = n3;
      };

   // Compute the minimum value
      int min = n1;
      if ( n2 <= min ) 
      {
         min = n2;
      };
      if ( n3 <= min ) 
      {
         min = n3;
      };

   // Compute the desired difference
      int diff = max - min;

   // Print the desired difference
      IO.println("The difference is:  " + diff);