Write a pseudo code for a summer vacation. Use different lineslike the IF…THEN statements and use assign variables
Solution
Pseudo code for max of 2 numbers using IF THEN statements:
PROGRAM GreaterOfTwo:
Read A;
Read B;
Max=0;
IF(A>B)
THEN
Max=A;
END IF;
IF(B>A)
THEN
Max=B;
END IF;
Print MAX
END
if you like the answer please provide a thumbs up.