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
Explain which oscillator is best for general purpose?
What is the function of freewheeling diodes in controlled rectifier?
Loop check when we do ???before solo run test or dis two activities not related .plz explain me
What is the construction of a solar cell? How is emf generated?
What are the characteristics of an ideal op-amp.
What is the construction of a solar cell?
what are the jobs that SBI will provide for ECE students
How can the memory of a computer be increased?
What is meant by sequence control of ac voltage regulators?
regarding bsnl jto examination,can i use the printout of application format mentioned in the advertisement.
i want aftek placement paper if any body have pls send me its urgent
Give two advantages of csi?
Explain difference between dcs & plc & scada?
Draw the circuit of ce configurations using npn transistor.
SIR,i am applying for the jr.engineer(signal)post.kindly if you send some previos sample question -answer i will be higly obliged