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
In C language, a variable name cannot contain?
Is main is user defined function?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
Why is event driven programming or procedural programming, better within specific scenario?
Explain how can I make sure that my program is the only one accessing a file?
What is time complexity c?
How do you use a 'Local Block'?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What is the difference between #include and #include 'file' ?
What does volatile do?
What are the types of data files?
What is scope of variable in c?
If you know then define #pragma?
what is ur strangth & weekness
Are comments included during the compilation stage and placed in the EXE file as well?