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
What is double pointer?
Explain how are 16- and 32-bit numbers stored?
Is there a way to switch on strings?
How to Throw some light on the splay trees?
Explain modulus operator.
What is ponter?
Is that possible to store 32768 in an int data type variable?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
How does pointer work in c?
What are two dimensional arrays alternatively called as?
How do you determine whether to use a stream function or a low-level function?
What are the 32 keywords in c?
What is the purpose of 'register' keyword?
Why do we need volatile in c?
How can I read in an object file and jump to locations in it?