C PROGRAMMING
Write a c program to check greater of three numbers
#include<stdio.h>
main()
{
int a,b,c;
printf("Enter the Four Numbers :");
scanf("%d %d %d",&a,&b,&c);
if(a>b)
{
if(a>c)
{
printf("%d is greater",a);
else
{
printf("%d is greater",c);
}
}
}
else if(b>c)
{
printf("%d is greater",b);
else
{
printf("%d is greater",c);
}
}
getch();
}