C Program to find biggest of three numbers using If Else statement
Program
#include<stdio.h>
void main()
{
int a, b, c;
printf("Enter three numbers\n");
scanf("%d %d %d", &a, &b, &c);
if((a > b) && (a > c))
printf("a is biggest\n");
else if(b > c)
printf("b is biggest\n");
else
printf("c is biggest\n");
}
Output 1
Enter three numbers
12
9
2
a is biggest
Output 2
Enter three numbers
5
37
8
b is biggest
Output 3
Enter three numbers
12
50
77
c is biggest