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 scope of static variables?
Is register a keyword in c?
What is scope rule in c?
How many keywords (reserve words) are in c?
What is const keyword in c?
How we can insert comments in a c program?
Why can arithmetic operations not be performed on void pointers?
Here is a neat trick for checking whether two strings are equal
What are pointers really good for, anyway?
What is hashing in c language?
What is this pointer in c plus plus?
hi send me sample aptitude papers of cts?
What are header files? What are their uses?
What are the types of type specifiers?
What are global variables and how do you declare them?