write a c program to find biggest of 3 number without
relational operator?
Answer Posted / zishan ahmad
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter the values of a,b and c");
scanf("%d%d%d",&a,&b,&c);
if(a>b && a>c)
printf("a is greatest of %d %d %d", a,b,c);
else
if(b>c)
printf("b is greatest of %d %d %d",a,b,c);
else
printf("c is gratest of %d %d %d",a,b,c);
getch();
}
| Is This Answer Correct ? | 1 Yes | 15 No |
Post New Answer View All Answers
What is typedf?
Where are the auto variables stored?
What is the difference between %d and %i?
What is the difference between array and linked list in c?
What are global variables and how do you declare them?
while initialization of array why we use a[][2] why not a[2][]...?
Explain the Difference between the New and Malloc keyword.
Why malloc is faster than calloc?
What is the difference between int main and void main?
how logic is used
Can you pass an entire structure to functions?
Is c is a middle level language?
Why is #define used?
Is it possible to pass an entire structure to functions?
What are directives in c?