26. C Program Find Biggest of Three Numbers.
How does this program work?
- In this Program you will learn about how to store three numbers in variables.
- And then using if case we are comparing each number.
- After comparing each number with other final output is displayed using c-Language.
Here is the code
#include <stdio.h>
int main(void)
{
int number1,number2,number3;
printf("Enter three numbers \n");
scanf("%d%d%d", &number1,&number2,&number3);
if (number1>number2&&number1>number3)
printf("%d is a Big number\n", number1);
else
if (number2>number1&&number2>number3)
printf("%d is a Big number\n", number2);
else
if (number3>number1&&number3>number2)
printf("%d is a Big number\n", number3);
return 0;
}