write a c program to find largest of three numbers using simple if only for one time.
Answer Posted / 1160
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c,max;
scanf("%d %d %d",&a,&b,&c);
if (a>b && a>c)
{
printf("%d",a);
}
max=(b>c)&&(c>a)?printf("%d",b):printf("%d",c);
return max;
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is abstract data structure in c?
Write a program of advanced Fibonacci series.
Explain how many levels deep can include files be nested?
Explain what is meant by high-order and low-order bytes?
Why string is used in c?
How can this be legal c?
writ a program to compare using strcmp VIVA and viva with its output.
What does 4d mean in c?
Tell us something about keyword 'auto'.
What are the different properties of variable number of arguments?
How can I trap or ignore keyboard interrupts like control-c?
Explain how do you view the path?
What are the types of pointers in c?
I need testPalindrome and removeSpace
#include
Tell us bitwise shift operators?