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
Which material is piezoelectric?
What is transistor biasing?
What is the output power of a BTS, in dbm &watts if trx=2+2+2... if trx=4+4+4..
what is semi&full custom difference b/w these two?
i done m.e communication system degree. i like to study new degree. which course is to choose. i selected m.sc applied psychology, m.sc e&i. is this suitable for me or say some suggestion to do some course.
Define what is meant by operating point?
Why we need biasing for transistor, fet and mosfet?
sir i need a few nots of electronics component cicuit plz send me some nots
I would like to do my MS in US but i have a second class in B.tech with 56% where in i have good acedemics in 10th and inter .Is it posiible to get a US visa if i get good scores in GRE and toefl.I have work experience in an Internation call center for 1 year will they consider me for US visa as i have a gap of 2 yaers after my B.tech will the visa be succesful.What would be the answer if they ask me why you worked in callcenter after your B.tech and why opting for MS now when you didnt show interest in your B.tech background....
what are the best institutes in hyd for groups
i in 4th year electronics engineering. i ask about ideas for graduaring projects?
What is a mosfet? How is it different from a jfet? What are its typical applications?
What are the limitations of the karnaugh map?
Explain the use of ranging and radar?
How bjt can be used as an amplifier.