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

Can u please post some questions of MTNL junior telecom officer exam?

0 Answers   Lanco,


why can't we share the charging of one phone to another phone? it would be useful during emergency times!! And the mode of sharing should be wireless...

0 Answers  


WHERE MODERN TECHNOLOGY USEING IN STEEL INDUSTRY.AND WHAT IS THE NAME OF THE TECHNOLOGY

2 Answers   TATA, Vizag Steel,


What is the wave equation for the sound waves encountered in smart cell phones, specifically android?

0 Answers  


Given a light which may blink at a random time. There are two players who has to press a button when light blinks. The person who gets 20 pts first is declared as winner. Design FSM for this gaming event.

0 Answers   Qualcomm,






Why 50Hz power supply is standard?

2 Answers  


why u have choosen ece?

3 Answers  


Why is fet known as a unipolar device?

0 Answers  


In the OTA, the transconductance is controlled by A The ac supply voltage B A bias current C The input signal voltage D The manufacturing process

0 Answers  


what is scada what is plc what is hmi what is drieves whatis timmer what is counter what is automation

2 Answers  


hoe to convert D flip flop to T flip flop

3 Answers  


Definition of power electronics?

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • 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)