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

Explain which oscillator is best for general purpose?

546


What is the function of freewheeling diodes in controlled rectifier?

692


Loop check when we do ???before solo run test or dis two activities not related .plz explain me

1340


What is the construction of a solar cell? How is emf generated?

583


What are the characteristics of an ideal op-amp.

641






What is the construction of a solar cell?

606


what are the jobs that SBI will provide for ECE students

2513


How can the memory of a computer be increased?

624


What is meant by sequence control of ac voltage regulators?

604


regarding bsnl jto examination,can i use the printout of application format mentioned in the advertisement.

1484


i want aftek placement paper if any body have pls send me its urgent

2065


Give two advantages of csi?

628


Explain difference between dcs & plc & scada?

561


Draw the circuit of ce configurations using npn transistor.

594


SIR,i am applying for the jr.engineer(signal)post.kindly if you send some previos sample question -answer i will be higly obliged

1717