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 |
Tell me what is memristor? How many modes it works? Also what is its advantage? How it differ from others & why the name evolve? & What is its uses?
construction of current tranformer
Hey Frnds...... I want to do a course in Telecom Protocol Development in delhi or chandigarh plz tell me the best institutes providing the training as above.I am eagerly waiting for ur early replies............
What are the applications of v-i and i-v converters?
why micro processor can store maximum of eight bits for each memory location
IN WCDMA(WIDE CODE DIVISION MULTIPLE ACCESS)WHICH ONE FREQUENCY HOPPING IS USED EITHER FAST FREQUENCY OR SLOW FREQUENCY HOPPING,SAY IN DETAILS
What is VSWR? what are waveguides and their types. What is Aloha? Shannon's information capacity theorem, Sampling theorem, antenna gain, types of antennae, GSM/CDMA comparison, modulation techniques, Superheterodyne receiver
What is the difference between ASICs and FPGA devices? Which one is better? Which is being currently in use?
What are the disadvantages of ac voltage controllers?
what is the difference between linear and non linear elements.
Can any one tell me what ll be the interview questions for fresher in lectronics.
Suppose in market 4n27 is not easily available so which opto isolator can I use at the place of this? What is 4n27
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)