START
DECLARE length1, width1 , length2, width2, area1, area2
READ length1, width1, length2, width2
area1 = length1 * width1
area2 = length2 * width2
IF area1 > area2
DISPLAY “Larger area: “ area1
ELSE IF area2 > area1
DISPLAY “Larger area: “ area2
ELSE
DISPLAY “Areas are equal “
END IF
END
---------------------------------------------------------------------------------
Thank You ! I hope you understood the code, because it is self understandable. If you like the answer please UPVOTE.
Get Answers For Free
Most questions answered within 1 hours.