write a c programme to identify the biggest smallest and
middle value of the given three numbers
Answer Posted / santhoshi
#include<stdio.h>
main()
{
int a,b,c;
printf("Enter three values:");
scanf("%d %d %d",&a,&b,&c);
if(a>b&&a>c)
printf("biggest number is a ");
{
if(b>c)
printf("middle value is b");
else
printf("smallest value is c");
}
else if(b>a&&b>c)
printf("biggest number is b");
{
if(a>c)
printf("mid number is a");
else
printf("smallest number is c");
}
else(c>a&&c>b)
printf("biggest number is c");
{
if (b>a)
printf("mid no is b");
else
printf("smallest no is a");
}
getch();
}
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
what is voltage drop?
What are schmitt triggers?
In connections of mcb, is it necessary that the incoming side supply should be connected at top side of mcb. Whether this has any effect in tripping of mcb in case of fault?
What is avalance breakdown?
i having three wire RTD but i want analog input signal 4 to 20ma to Allen Bradly plc.so how to connect this one.pls clarifie me.
objective questions & answers in c & c++ software languages
Water boiling point temperature is 100 deg. In which liquid state is convert into the gas state,but in turbine which principle is use by which exhaust temperature is 50-55 deg and is in the stage of steam?
Describe the sampling theorem.
important questions about sip and ims protocols
How can the memory of a computer be increased?
can u send me previous question papers of secction engineer (electronics),chennai rrb.
What is transistor?
explain the application of a jfet.
What is difference between 2 quadrant & 4 quadrant digital dc drive.
Please send me some more Electronics Technical questions..