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

Answers were Sorted based on User's Feedback



write a c programme to identify the biggest smallest and middle value of the given three numbers..

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

write a c programme to identify the biggest smallest and middle value of the given three numbers..

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

More Electronics Communications Interview Questions

hi.. i m a fresher in ECE 3rd yr how 2 face the campus placement in any mnc company and what to prepare please mail me in detail.

0 Answers  


full from of GSM?

10 Answers  


1. A Man pays income tax of Rs.3000 of 10% the income will be Rs.12000.What will be his income before tax. 2. 135,45,180,60,240,75 will be next number. 3. A Can do a job in 9 days, A and B together can complete a job in 5 days. How long will B Alone can complete it? 4. Consider the word ECONOMISTICS, interchange the letter first and second, third and fourth, fourth and fifth and soon on. What will be the last letter after interchanging? 5. The 8 consecutive odd number with 7th term 9 is taken. Then what would be the sum of it. 6. Problem on profit and loss 7. Rosy and jenny plan to talk in secret code. Next day rosy send a message to jenny that her lover xxxxx ask to come. What could be his name? 8. Jackson was a famous writer; he uses a dash at the end of the line. This method was earlier followed by Dickson. Dickson found happy to see his poet printed in paper as such check which of the statement given below weaken the above passage. A. Jackson feels jealous of Dickson B. Dickson wontedly uses this method. 9. Basic Mathematic problems 10. Find the sequence of numbers Example: In the sequence of numbers 5, 8, 12, X, 34, 55, 89..... The value of X is

0 Answers  


There are 4 segment registers in 8086 microprocessor.Each of the segment register is of 64kb.Then (4*64)=256kb.The total memory in 8086 is 1mb.What about the rest of the memory space?

3 Answers   BEL,


Power mosfet is a voltage controlled device. Why?

0 Answers  


Why transistor is called current controlled device?

0 Answers  


What is Cell Splitting?

0 Answers  


plz send the rrb junior engg and assistant loco pilot previous quastion papers

0 Answers  


Explain differences between microprocessor and micro controller?

0 Answers  


what is Active device and Passive device?

9 Answers  


Although zener diode is operated in the reverse breakdown region, but it does not burn. Why?

0 Answers  


Explain the use of excess-3 code.

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4453)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)