How to Find Greatest of Three Numbers in C:-
The C program to find the greatest of three numbers requires the user to insert three integers. The flow chart is also used in C programming to find the greatest number among three integers inserted by the user. A simple if-else block is used to identify the greatest number.
ALGORITHMS:-
Step 1: Start
Step 2: Take three integer values from the user.
Step 3: If no1 is greater than no2 and no3, print “Number1 is greatest”.
Step 4: If no2 is greater than no1 and no3, print “Number2 is greatest”.
Step 5: If both the conditions are false, then print “Number3 is greatest”.
Step 6: Stop
CODE: -
Comments
Post a Comment