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 #ifdef ? What is its application?
What is getch c?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
which type of aspect you want from the student.
What is the difference between #include
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
write a program to print data of 5 five students with structures?
What is the value of c?
What are the 5 elements of structure?
Explain what are header files and explain what are its uses in c programming?
What is difference between function overloading and operator overloading?
What is %d used for?
What are local static variables?
int far *near * p; means