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 |
On what principle the sonar/ radar works
which is the best site to know about electronics for study
what is communication?
sample papers for post of A.E. in P.S.E.B.
2 Answers APTransco, FGH, Malwa, PSEB, PSPCL, VCV,
whah is active and passive components?
Explain the approximate cost of the following corrosion monitoring systems. Smart pebbles eci-1(embedded corrosion instrument) monitoring cables time domain reflectometry &corrosion penetration monitoring system(cpmp)?
Define the kirchoff's law? Difference between continuous and discrete time signal?
Explain what are the universal logic gates?
Hi dears, i work with E// switches since a bit time,i faces a problem with AFFILE output,when i get the out put (with Hex code) and i try to convert it to ASCII code it gives me the correct values but the data is not arrange correctly,there is some tabs,spaces and by result the data is shifted is there any advice for this case thanks & regards
What is the significance of the arrow-head in the transistor symbol?
plz tell me the syllabus for airport authority of india recruitment for the post of Jr. electronics engineer.let me know whether written test will be a aptitude test or technical??
what are differential gain and common-mode gain of a differential amplifier?