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
Explain what is the benefit of using an enum rather than a #define constant?
What is preprocessor with example?
What is the g value paradox?
What does it mean when a pointer is used in an if statement?
What is the process to generate random numbers in c programming language?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
can we have joblib in a proc ?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Explain the difference between null pointer and void pointer.
What is the purpose of the preprocessor directive error?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
What is the default value of local and global variables in c?
Why clrscr is used after variable declaration?
What is sizeof int in c?
Write a program to print fibonacci series without using recursion?