C Program to find the Biggest of Three Numbers

This c program prompts the user to enter three numbers, reads them using scanf, and then uses a series of if and else if statements to determine and print the largest number among the three.

Program :

#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c;
printf(“Enter First the Number : “);
scanf(“%d”,&a);
printf(“Enter Second the Number : “);
scanf(“%d”,&b);
printf(“Enter Third the Number : “);
scanf(“%d”,&c);
if((a>b)&&(a>c))
{
printf(“%d is the Biggest Number.”,a);
}
else if((b>a)&&(b>c))
{
printf(“%d is the Biggest Number.”,b);
}
else
{
printf(“%d is the Biggest Number.”,c);
}
}

Output :

27 thoughts on “C Program to find the Biggest of Three Numbers”

Leave a Comment

Your email address will not be published.

Shopping Basket
Verified by MonsterInsights