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
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Can a file other than a .h file be included with #include?
What are pointers?
Can we change the value of #define in c?
what is recursion in C
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
What is the stack in c?
What do you mean by invalid pointer arithmetic?
What are the header files used in c language?
Why we use void main in c?
Where is c used?
What is the purpose of 'register' keyword?
Where are local variables stored in c?
What is the importance of c in your views?