%------------------------------------------------------------------------------
% Prompt user to enter two values. Report the max and min:

  % Clean things up:
    clear;clc;
  
  % Obtain two values to check:  
    disp('You will enter 2 values.');
    disp('I will let you know which is min and max!');
    value1 = input('Enter a number: ');
    value2 = input('Enter another number: ');
 
  % Assume a min and max, though they might change later:
    min = value1;
    max = value2;
    
  % Check if you made the right choices and swap if necessary.
  % Is min > max? If so swap the values:

    if min > max
      tmp = max;
      max = min;
      min = tmp;
    end 
    
  % Report the results

    disp('Reporting results!');
    if min <= max
      min
      max
    else
      disp('Something went horribly wrong!');
    end
%------------------------------------------------------------------------------
