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
Explain why the shape of op-amp is triangular not other shape?
For what a triggering circuit is provided in a cro?
What happens when a voltmeter is connected in series with the circuit?
Why is there a maximum limit of collector supply voltage for a transistor?
Explain the application of using flyback converter.
pls what type of questions asked in interview of appsc polytechnic govt lecturers mail to kram.thulasi@gmail.com
WHEN +VE VOLTAGE ON THE GATE P-CHANNEL JFET IS INCRESED DRAN CRICUT WILL BE WHAT CONDITION
Explain why is the plastic dip ic package most widely used?
Define negative logic.
What is a bcd?
What types of carriers are present in space charge region?
Why is space region called the depletion region?
What is meant by phase reversal?
Difference between resistance and resistivity
what happen when the rectifier circuit is connect with the tube light?