% Alternative solution to Part B % Find maximum value from three values % Gather three values from the user: v1=input('Please enter value 1: '); v2=input('Please enter value 2: '); v3=input('Please enter value 3: '); % Guess a maximum value: max = v1; % Compare first and second values: if (v2 > max) max = v2; end % Compare the result of the previous comparison to the third value: if (v3 > max) max = v3; end % Output the result: max