C Programming | C Programs | C Examples | C Program to find greatest of three numbers
#include <stdio.h>
void main ()
{
int a,b,c;
printf( "Enter three numbers:");
scanf("%d %d %d ", &a, &b,&c);
if (a>b)
{
if (a>c)
printf("%d is Big",a);
else
printf("%d is Big",c);
}
else
{
if (b>c)
printf("%d is Big",b);
else
printf("%d is Big",c);
}
}
No comments:
Post a Comment