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 :

Leave a Comment

Your email address will not be published. Required fields are marked *

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

Shopping Basket
Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare
Verified by MonsterInsights