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
What is the turn-off time for converter grade scrs and inverter grade scrs?
Differentiate between intrinsic semiconductors and intrinsic semiconductors?
can i get all books inrpidshare
what is integration,optimization of gsm corenetwork in practice?
what is potetial,voltage,potential difference
What is meant by a bit?
What are the different types of communications?
The loss of precision in quantity is called A Down time B Delay C Unavoidable delay D None of these
Why an ordinary junction transistor is called bipolar?
Explain why bjt is called current control device?
Is a hole a fundamental particle in an atom?
What is the difference between E1T1 Card & RRI & FIU.
1.what is the difference between snr and cnr?why cnr is used in satellite communication? 2.prove that power spectral density of gaussian noise os n/2
please send me earlier question papers of rrb je(signal)at my id arvind44444@gmail.com
What is circuit switching?