#include<stdio.h>
int main()
{
int a,b,c,x,y;
printf("Enter first number\n");
scanf("%d",&a);
printf("Enter second number\n");
scanf("%d",&b);
printf("Enter third number\n");
scanf("%d",&c);
x=a>b?a:b;
y=x>c?x:c;
printf("Greatest number is=%d",y);
}
OUTPUT
Enter first number
8
Enter second number
56
Enter third number
89
Greatest number is=89
Comments
Post a Comment