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 / m. priyanga

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter the values a,b,c:");
scanf("%d%d%d",&a,&b,&c);
if((a>b)&&(a>c))
printf("a is greatest of %d %d %d",a,b,c);
else if(b>c)
printf("b is greatest of %d %d %d",a,b,c);
else
printf("c is greatest of %d %d %d",a,b,c);
getch();
}
Output:
Enter the values a,b,c: 4 5 6
c is greatest of 4 5 6

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is double pointer?

986


Explain how are 16- and 32-bit numbers stored?

1246


Is there a way to switch on strings?

1071


How to Throw some light on the splay trees?

1049


Explain modulus operator.

1032


What is ponter?

1256


Is that possible to store 32768 in an int data type variable?

1068


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1116


How does pointer work in c?

1110


What are two dimensional arrays alternatively called as?

1165


How do you determine whether to use a stream function or a low-level function?

1111


What are the 32 keywords in c?

1076


What is the purpose of 'register' keyword?

1090


Why do we need volatile in c?

1156


How can I read in an object file and jump to locations in it?

1016