write a c program to find biggest of 3 number without
relational operator?
Answer Posted / abhishek agarwal
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("a=") ;
scanf("%d",&a);
printf("b=");
scanf("%d",&b);
while (a!=0&&b!=0)
{
a=a--;
b=b--;
if (a==0)
printf ("b is greater");
if (b==0)
printf("a is greater");
}
getch();
}
For more programs see my blog cblogabhishek.blogspot.com
| Is This Answer Correct ? | 19 Yes | 19 No |
Post New Answer View All Answers
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Explain modulus operator.
What is the difference between text files and binary files?
Explain what is the advantage of a random access file?
Why do we need volatile in c?
What are the rules for identifiers in c?
How do I convert a string to all upper or lower case?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
How do you do dynamic memory allocation in C applications?
What is the g value paradox?
What is variable and explain rules to declare variable in c?
The difference between printf and fprintf is ?
Can include files be nested?
What is the data segment that is followed by c?
What are the types of data files?