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

State the differences between fir and iir filters?

595


What is meant by impedance diagram?

684


Explain what is associate law?

608


i am an i.t.i holder in electronics i need those questions and their which have been asked in aircraft company for the post of technician

4942


What is a rectifier?

613






What are the essential components of a crt?

673


What are the applications of demultiplexer?

605


What is barkhausen criteria?

785


i am going to visa second time i was rejected on 15-07-08 and on 14-08-08 i am attending visa again with another university.so what would be the good answer if they asks that why you have changed the university?

1836


Calculator battery power goes down to 1V from 1.6V in 15 days... What could be the reason?

2012


8. How many E1s are supported by one E1 card in BTS

2564


The linearity error for a digital input is indicated by what???

1608


wat you mean by harmonics? why you r using isolation transformer in digital ups or in normal means igbt ups?

1408


What is the basis for classifying a material as a conductor, semiconductor, or a dielectric?

671


what Rx and TX power good RF conditions.

1971