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
How do you list files in a directory?
What is non linear data structure in c?
What is the significance of c program algorithms?
Explain what are the different data types in c?
What is malloc calloc and realloc in c?
Is null always defined as 0(zero)?
How can I automatically locate a programs configuration files in the same directory as the executable?
Describe the difference between = and == symbols in c programming?
What is array of pointers to string?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What tq means in chat?
Differentiate between ordinary variable and pointer in c.
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
What is #include stdio h and #include conio h?
Why do we need arrays in c?