Tuesday, September 8, 2009

GREATEST AMONG 3 NUMBERS USING BINARY MINUS IN C

void main(){int a,b,c;clrscr();printf("\nEnter 3 numbers: ");scanf("%d %d %d",&a,&b,&c);if(a-b>0 && a-c>0)printf("\nGreatest is a :%d",a);elseif(b-c>0)printf("\nGreatest is b :%d",b);elseprintf("\nGreatest is c :%d",c);getch();}

No comments:

Post a Comment