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

5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2087


Explain modulus operator.

1031


What is the difference between text files and binary files?

1336


Explain what is the advantage of a random access file?

1108


Why do we need volatile in c?

1154


What are the rules for identifiers in c?

1054


How do I convert a string to all upper or lower case?

1093


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2724


How do you do dynamic memory allocation in C applications?

1071


What is the g value paradox?

1149


What is variable and explain rules to declare variable in c?

1071


The difference between printf and fprintf is ?

1263


Can include files be nested?

1088


What is the data segment that is followed by c?

1065


What are the types of data files?

1188