50. C Program To find the Biggest number from the given numbers.
How does this program work?
- This code helps to find biggest among the given numbers.
- Here we find biggest of a number among the given 5numbers.
- Here we took 5variables to store 5numbers.
- By using the simple if case we compare the numbers easily.
Here is the code
#include <stdio.h>
int main(void)
{
int big,a,b,c,d,e;
printf("Enter five numbers:\n");
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
big=a;
if(big < b) big = b;
if(big < c) big = c;
if(big < d) big = d;
if(big < e) big = e;
printf("Biggest of the given 5 numbers is : %d",big);
return 0;
}