Write Algorithm to Find Maximum Number From Three Numbers.
Algorithm:
Step 1: StartStep 2: Declare num1, num2, num3.
Step 3: Enter the num1, num2, num3.
Step 4: If (num1 > num2) then goto step 5 else goto step 8.
Step 5: If (num1 > num3) then goto step 6 else goto step 7.
Step 6: Display num1 is the maximum.
Step 7: Display num3 is the maximum.
Step 8: If (num2 > num3) then goto step 9 else goto step 10.
Step 9: Display num2 is the maximum.
Step 10: Display num3 is the maximum.
Step 11: Stop.