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 the best way of making my program efficient?

1082


Where can I get an ansi-compatible lint?

1201


Differentiate between functions getch() and getche().

1107


What is the purpose of main( ) in c language?

1184


What does typeof return in c?

1159


What are header files and explain what are its uses in c programming?

1172


How can I handle floating-point exceptions gracefully?

1240


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

1216


What is a MAC Address?

1121


Here is a good puzzle: how do you write a program which produces its own source code as output?

1168


Is there anything like an ifdef for typedefs?

1215


How would you rename a function in C?

1085


How can I implement a delay, or time a users response, with sub-second resolution?

1114


Explain low-order bytes.

1096


What is the difference between int main and void main in c?

1235