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
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.?
Differentiate between new and malloc(), delete and free() ?
write a c program in such a way that if we enter the today date the output should be next day's date.
Where can I get an ansi-compatible lint?
What is strcpy() function?
What is const volatile variable in c?
What is ponter?
What do you understand by friend-functions? How are they used?
Explain how do you sort filenames in a directory?
Why pointers are used?
What is the advantage of using #define to declare a constant?
I need a sort of an approximate strcmp routine?
What is s or c?
what will be maximum number of comparisons when number of elements are given?
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