Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a c program to find biggest of 3 number without
relational operator?

Answer Posted / abhishek agarwal

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("a=") ;
scanf("%d",&a);
printf("b=");
scanf("%d",&b);
while (a!=0&&b!=0)
{
a=a--;
b=b--;
if (a==0)
printf ("b is greater");
if (b==0)
printf("a is greater");
}
getch();
}

For more programs see my blog cblogabhishek.blogspot.com

Is This Answer Correct ?    19 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

1096


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

977


Can a file other than a .h file be included with #include?

1101


What are pointers?

1044


Can we change the value of #define in c?

959


what is recursion in C

1019


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

990


What is the stack in c?

1082


What do you mean by invalid pointer arithmetic?

1003


What are the header files used in c language?

995


Why we use void main in c?

1099


Where is c used?

1035


What is the purpose of 'register' keyword?

1049


Where are local variables stored in c?

982


What is the importance of c in your views?

1094