write a c program for greatest of three numbers without
using if statment
Answer Posted / swathi
main()
{
int a,b,c,s1,big;
printf("enter 3 values");
scanf("%d %d %d", &a,&b,&c);
s1=(a>b)? a : b;
big= (s1>c)? s1 : c;
printf("largest of 3 no's=%d",big);
}
| Is This Answer Correct ? | 23 Yes | 6 No |
Post New Answer View All Answers
Why is structure padding done in c?
Why is c fast?
What is use of integral promotions in c?
write a program in c language to print your bio-data on the screen by using functions.
How can I avoid the abort, retry, fail messages?
Where can I get an ansi-compatible lint?
Can the size of an array be declared at runtime?
Explain what is a program flowchart and explain how does it help in writing a program?
How many keywords (reserve words) are in c?
Can we access array using pointer in c language?
Explain what are multidimensional arrays?
What are the advantages of external class?
What is a structure and why it is used?
Why main function is special give two reasons?
How can you allocate arrays or structures bigger than 64K?