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
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
Construct a pseudocode to compute, to display the sum of ten (10) integer numbers and determine the...
how to develop an algorithm and pseudocode read 10 integer from the keyboard in the range 0 up to 1...
how to write pseudocode read 10 integers from the keyboard in the range 0 to 100 and count how many...