Monday, 10 October 2011

to se e amonsgt 3 number which is greater


#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c;
printf("enter the 3 number");
scanf("%d %d %d",&a,&b,&c);
if(a>b)
{
printf("a is greater");
}
if(b>c)
{
printf("b is greater");
}
else
printf("c is greater");
getch()
return 0;
}







                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               

No comments:

Post a Comment