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 |
hi.. i m a fresher in ECE 3rd yr how 2 face the campus placement in any mnc company and what to prepare please mail me in detail.
full from of GSM?
1. A Man pays income tax of Rs.3000 of 10% the income will be Rs.12000.What will be his income before tax. 2. 135,45,180,60,240,75 will be next number. 3. A Can do a job in 9 days, A and B together can complete a job in 5 days. How long will B Alone can complete it? 4. Consider the word ECONOMISTICS, interchange the letter first and second, third and fourth, fourth and fifth and soon on. What will be the last letter after interchanging? 5. The 8 consecutive odd number with 7th term 9 is taken. Then what would be the sum of it. 6. Problem on profit and loss 7. Rosy and jenny plan to talk in secret code. Next day rosy send a message to jenny that her lover xxxxx ask to come. What could be his name? 8. Jackson was a famous writer; he uses a dash at the end of the line. This method was earlier followed by Dickson. Dickson found happy to see his poet printed in paper as such check which of the statement given below weaken the above passage. A. Jackson feels jealous of Dickson B. Dickson wontedly uses this method. 9. Basic Mathematic problems 10. Find the sequence of numbers Example: In the sequence of numbers 5, 8, 12, X, 34, 55, 89..... The value of X is
There are 4 segment registers in 8086 microprocessor.Each of the segment register is of 64kb.Then (4*64)=256kb.The total memory in 8086 is 1mb.What about the rest of the memory space?
Power mosfet is a voltage controlled device. Why?
Why transistor is called current controlled device?
What is Cell Splitting?
plz send the rrb junior engg and assistant loco pilot previous quastion papers
Explain differences between microprocessor and micro controller?
what is Active device and Passive device?
Although zener diode is operated in the reverse breakdown region, but it does not burn. Why?
Explain the use of excess-3 code.
Civil Engineering (5086)
Mechanical Engineering (4453)
Electrical Engineering (16638)
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)