Question

Obtain two numbers from the keyboard and determine and display which (if either) is the larger of the two numbers using pseudocode

Answers

START

INPUT num1
INPUT num2

IF num1 > num2
DISPLAY "num1 is larger than num2"
ELSE IF num2 > num1
DISPLAY "num2 is larger than num1"
ELSE
DISPLAY "Both numbers are equal"

END

Related Questions