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
What is difference between Structure and Unions?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What is variable in c example?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Explain how do you determine a file’s attributes?
explain what are actual arguments?
Tell me can the size of an array be declared at runtime?
How do I read the arrow keys? What about function keys?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Why pointers are used?
What is structure padding and packing in c?
Explain what is the difference between null and nul?