write a c program for greatest of three numbers without
using if statment
Answer Posted / suresh
main()
{
int a,b,c,big;
printf("enter 3 values");
scanf("%d %d %d", &a,&b,&c);
big= ((a>b)&&(a>c))? a :b>c?b:c;
printf("largest of 3 no's = %d",big);
}
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Explain how do you list files in a directory?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
What is the difference between fread buffer() and fwrite buffer()?
Is it better to bitshift a value than to multiply by 2?
Explain how can I write functions that take a variable number of arguments?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What is the purpose of the statement: strcat (S2, S1)?
What is a loop?
What is wrong in this statement? scanf(“%d”,whatnumber);
Why & is used in scanf in c?
How many levels of indirection in pointers can you have in a single declaration?
What is the difference between NULL and NUL?