first = input('Enter the first value: ');
  sum = first;
  second = input('Enter the second value: ');
  sum = sum + second ;
  third = input('Enter the third value: ');
  sum = sum + third ;
  avg = sum / 3 ;
  disp(['The average of ',num2str(first),' and ',num2str(second), ' and ', ...
        num2str(third), ' is ', num2str(avg)] );