To accept three numbers and display the greater one.
Answer:
-
Step 1: Start
Step 2: Accept first number and store in A
Step 3: Accept second number and store in B
Step 4: Accept Third number and store in C
Step 5: Check Is A greater than B AND A
greater than C
If
Yes: Display “Greater Number is” A
If
No: Goto step 6
Step 6: check is B greater than A AND B greater
then C
If
Yes: Display “Greater Number is” B
If
No: Display “Greater Number is” C
Step 7: End
Comments
Post a Comment