Write Pseudo Code Summer Vacation Use Different Lines Like Statements Use Assign Variable Q37071270

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.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.