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 are the advantages of external class?
Can you mix old-style and new-style function syntax?
Do you know what are the properties of union in c?
How to get string length of given string in c?
Can a void pointer point to a function?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Explain how can you tell whether a program was compiled using c versus c++?
How do we open a binary file in Read/Write mode in C?
How many loops are there in c?
What is the scope of an external variable in c?
What are reserved words?
Can a pointer be volatile in c?
Explain what is meant by 'bit masking'?
How do you declare a variable that will hold string values?
Combinations of fibanocci prime series