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

Which is the pin no of CN1 TERMINAL and the parameter using in delta servo drive for auto/man input and start forward input

2018


box1-2 box2-12 box3-350 using multiplication and division only bring 74 in box 3 in 3steps

4816


explain the trasistor sizing procedure for a four inputNOR and four input NAND Gate?

2718


Define what is meant by voltage regulation of a dc power supply?

1051


In what does the Gas Leds emit radiation?

1061


How many GDA exists for a group ?

4340


Why r-c filters are suitable only for light loads?

1068


What are the two modes of mosfet?

1193


i m i n3rd ye of btech EC branch and have been placed in sftware company..wat sghd i do to improve my skills in 4th yr..i have a gd academic background.

3198


sir, please send HPCL INFORMATION SYSTEMS OFFICER SYLLABUS WITH PREVIOUS QUESTION PAPERS

4062


please provide me the previous technical papers for ece branch conducted by hpcl

2067


What is meant by cyclo-converter?

1052


Define what is point contact diode?

1078


how to design an ups and battery connections for ups .

1922


what are the advantages of using a voltage follower amplifier?

1209