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 should malloc(0) do?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
What are lookup tables in c?
what is the structure pointer?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
Why is c used in embedded systems?
Why are all header files not declared in every c program?
Is this program statement valid? INT = 10.50;
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
Differentiate between static and dynamic modeling.
What is an auto variable in c?
What is c value paradox explain?
What is dangling pointer in c?
Why is c called a mid-level programming language?
Explain why can’t constant values be used to define an array’s initial size?