Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

what is voltage drop?

1082


What are schmitt triggers?

1163


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?

1076


What is avalance breakdown?

1102


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.

1941


objective questions & answers in c & c++ software languages

3011


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?

1208


Describe the sampling theorem.

1222


important questions about sip and ims protocols

10627


How can the memory of a computer be increased?

1100


can u send me previous question papers of secction engineer (electronics),chennai rrb.

2201


What is transistor?

1216


explain the application of a jfet.

1156


What is difference between 2 quadrant & 4 quadrant digital dc drive.

3030


Please send me some more Electronics Technical questions..

2079