C Program to find greatest in three numbers
This problem may be solved by different patterns.Here we are providing the simplest method to find the greatest number between three numbers. It can also be solved by nested if statement, else if ladder statement.
C Program to find greatest in 3 numbers Simply Define
C is greatest number
Explanation of Program :
In this program,we are taking three input number as a integer value from the keyboard a,b,c now we are applying if statement here, you can also solve this problem by using different statement. You can understand this example in an easy way by given below example.
First i check here
a>b && a>c if both conditions will true then a will be the greatest number else. Now we have only two numbers that are b and c.
Now we will check b>c here if b is greatest then the program will print b otherwise c will greatest.
© 2017 - All Rights Reserved