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
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 |
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 |
how can i do offset compensation , phase compensation and gain ratio using DAC?
Difference Between CDMA and GSM?
For asynchronous transmission, is it necessary to supply some synchronizing pulses additionally or to supply or to supply start and stop bit?
what is encoder? mechanical encoder?
2 Answers HCL, TATA, Tata Communications,
Explain the configuration of 4+4+4.
Why there is no consistency in ur percentage of marks of 10th,inter and b-tech?
Hi.im IMRAN.Im pursuing my B.tech final yr.plzzz any 1 guide that vich course shud i take in telecom.either protocol development or protocol testing or hardware plzzzz tell me n hz this important in future n why shud i take.plzzzzz its my request u to send this answer.thnx bro i vil wait for u r answer.k.byeeeeeee
What will happen if we change the polarity of microwave antenna?
what is formalism of embedded system?
If we use heat sinkble rechem make HT jointing kit for XLPE HT (6KV)termination at HT side of transformenr, Is it required to fill the HT termination with Epoxy compoud?
what is the representation of a discrete signal?
Explain what are semiconductor devices?