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 / aswani

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter a,b,c values");
scanf("%d%d%d",&a,&b,&c);
if(a>b&&a>c&&b>c)
{
printf("biggest number is a ");
printf("middle value is b");
printf("smallest value is c");
}
else if("a>b&&a>c&&c>b");
{
printf("big no is a");
printf("mid no is c");
printf("sma no is b");
}
else if(b>a&&b>c&&a>c)
{
printf("big no is b");
printf("mid no is a");
printf("sma no is c");
}
else if(b>a&&b>c&&c>a)
{
printf("big no is b");
printf("mid no is c");
printf("sma no is a");
}
else if(c>a&&c>b&&b>a)
{
printf("big no is c");
printf("mid no is b");
printf("sma no is a");
}
else if(c>a&&c>b&&a>b)
{
printf("big no is c");
printf("mid no is a");
printf("sma no is b");
}
getch();
}

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

3 flipflops are connected so that after 0 to 5 count occured next number is zero. So what is the counter?

1145


As a water tank loses heat, the temperature drops by 2 K/min when a heater is on, the system gains temperature at 4 K/min. A two-position controller has a 0.5 min control lag and a neutral zone of ± 4% of the setpoint about a setpoint of 323 K. Plot the heater temperature versus time. Find the oscillation period

2579


Define pinch-off voltage

1179


Define why are active filters preferred

1146


What is the effect of temperature on extrinsic semiconductor?

1130


Why series inductor and l-section filters cannot be used with half-wave rectifiers?

1240


what is meant by 8.0.4 in TEMS 8.0.4?

1831


Which Programer/Programing Software Should i use to program Mitsubishi FX Series PLC. PLZ DO ANSWER

1901


tell me a unforgettable incident? which u never forget in ur life?

2449


What is a transistor? What are its applications?

1212


Why diodes should be connected in antiparallel with thethyristors in inverter circuits?

1256


How to calculate knee point voltage?

1035


Define quad?

1188


what is pla instruction

3501


What are the UE modes in GSM,GPRS,UMTS and LTE

3742