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 |
why we are using register of 1k,10k,100k,47k,330k in cell phone based voting machine project?
Hi; May you please tell me that There are any best institute or training center in north India region like as Delhi NCR for Protocol stack development & testing, which are better for experienced & professional engg.
wat area the advantages of network gateway
i want assit.loco poilet sample papers
is the syllabus of group1 and group2 same for all graduates like btech,bsc,bcom?
Define fbus protocol?
if i get a job in bsc .what are the main key duties to handle
What is the diffenece b/w QPSK and DPSK?In these which one is better and why its better?
4 Answers Infosys, Innovis, TATA,
Is fan out of ECL logic family is high?give reason for yes or no?
Why common-collector circuit is known as an emitter follower?
How fast can the o/p of an op-amp change by 10v ,if its slew rate is 0.5v/micro sec.
Why is zener diode used as a voltage regulator?