C Program to Find Biggest among Three Numbers

#include<stdio.h>
#include<conio.h>
 
void main()
{
    int a,b,c;
    clrscr();
 
    printf(" Enter Three Values : ");
    scanf("%d %d %d",&a,&b,&c);
 
    if((a>b)&&(a>c))
        printf("\n %d is a Greatest Number",a);
 
    if((b>c)&&(b>a))
        printf("\n %d is a Greatest Number",b);
 
    if((c>a)&&(c>b))
        printf("\n %d is Greatest Number",c);
 
    getch();
}

 OUTPUT:

 Enter Three Values :  10 5 36

 36 is Greatest Number

Leave a Reply

Your email address will not be published.