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

Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1080


Differentiate between new and malloc(), delete and free() ?

1187


write a c program in such a way that if we enter the today date the output should be next day's date.

2200


Where can I get an ansi-compatible lint?

1155


What is strcpy() function?

1172


What is const volatile variable in c?

1043


What is ponter?

1271


What do you understand by friend-functions? How are they used?

1213


Explain how do you sort filenames in a directory?

1043


Why pointers are used?

1082


What is the advantage of using #define to declare a constant?

1099


I need a sort of an approximate strcmp routine?

1034


What is s or c?

1069


what will be maximum number of comparisons when number of elements are given?

1911


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

1222