This is a pseudocode to find greatest among 2 numbers.
Here the user enters two numbers and the greatest among the two numbers is found by comparing the two numbers and the result is displayed.
Write "Please enter a first number"
Write "Please enter a secondnumber"
Write number1 is the Greatest Number
else If (num2>num1)
Write number2 is the Greatest Number
we are finding the greatest value among 2 numbers. If else condition statement is used to compare the two numbers and print the greatest value among 2 numbers.