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


Please Help Members By Posting Answers For Below Questions

Explain why the shape of op-amp is triangular not other shape?

585


For what a triggering circuit is provided in a cro?

552


What happens when a voltmeter is connected in series with the circuit?

628


Why is there a maximum limit of collector supply voltage for a transistor?

1266


Explain the application of using flyback converter.

588






pls what type of questions asked in interview of appsc polytechnic govt lecturers mail to kram.thulasi@gmail.com

2733


WHEN +VE VOLTAGE ON THE GATE P-CHANNEL JFET IS INCRESED DRAN CRICUT WILL BE WHAT CONDITION

1533


Explain why is the plastic dip ic package most widely used?

702


Define negative logic.

695


What is a bcd?

605


What types of carriers are present in space charge region?

726


Why is space region called the depletion region?

607


What is meant by phase reversal?

625


Difference between resistance and resistivity

1168


what happen when the rectifier circuit is connect with the tube light?

1559