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
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
Can a file other than a .h file be included with #include?
What is a pointer in c?
List the difference between a While & Do While loops?
Write a code to generate divisors of an integer?
What are the features of c language?
What is the modulus operator?
What is a pointer variable in c language?
Is c high or low level?
What is difference between union All statement and Union?
What is use of integral promotions in c?
What is .obj file in c?
What is s in c?
Explain the bubble sort algorithm.