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 the Purpose of 'extern' keyword in a function declaration?
What are the types of data structures in c?
What is optimization in c?
What kind of structure is a house?
What is the main difference between calloc () and malloc ()?
What 'lex' does?
What are pointers? Why are they used?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Explain what is dynamic data structure?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Is there a way to compare two structure variables?
What is the process to generate random numbers in c programming language?
Where are c variables stored in memory?
Is c programming hard?
Why are algorithms important in c program?