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
3 flipflops are connected so that after 0 to 5 count occured next number is zero. So what is the counter?
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
Define pinch-off voltage
Define why are active filters preferred
What is the effect of temperature on extrinsic semiconductor?
Why series inductor and l-section filters cannot be used with half-wave rectifiers?
what is meant by 8.0.4 in TEMS 8.0.4?
Which Programer/Programing Software Should i use to program Mitsubishi FX Series PLC. PLZ DO ANSWER
tell me a unforgettable incident? which u never forget in ur life?
What is a transistor? What are its applications?
Why diodes should be connected in antiparallel with thethyristors in inverter circuits?
How to calculate knee point voltage?
Define quad?
what is pla instruction
What are the UE modes in GSM,GPRS,UMTS and LTE