Find greatest number


/*Find greatest no.*/

#include<stdio.h>

main()

{

int a,b,c,d;

clrscr();

printf(“enter three no”);

scanf(“%d%d%d”,&a,&b,&c);

d=(a>b)&&(a>c)?a:((b>c)?b:c);

printf(“%d is greatest”,d);

getch();

}

Related Posts

Comments are closed.