write a c program to find biggest of 3 number without
relational operator?
Answer Posted / rozzz
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c;
printf("nt Enter the first number : ");
scanf("%d",&a);
printf("nt Enter the second number : ");
scanf("%d",&b);
printf("nt Enter the third number : ");
scanf("%d",&c);
if(a>b && a>c)
printf("nt The greatest number is : %d ",a);
if(b>a && b>c)
printf("nt The greatest number is : %d ",b);
if(c>a && c>b)
printf("nt The greatest number is : %d ",c);
getch();
}
| Is This Answer Correct ? | 5 Yes | 34 No |
Post New Answer View All Answers
What are global variables and how do you declare them?
Why is main function so important?
What is the scope of static variable in c?
What is memcpy() function?
Explain the difference between null pointer and void pointer.
What are structure types in C?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
What are header files? What are their uses?
What is a example of a variable?
What is meant by preprocessor in c?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
Explain do array subscripts always start with zero?
find the sum of two matrices and WAP for it.
can we implement multi-threads in c.
Why do we use header files in c?