write a c programme to identify the biggest smallest and
middle value of the given three numbers
Answer Posted / 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 |
Post New Answer View All Answers
Is fan out of ECL logic family is high?give reason for yes or no?
Define cmrr of an opamp?
Describe the principle of step-up chopper. Derive an expression for the average output voltage in terms of input dc voltage & duty cycle?
what is difference between hybrid model and h parameter model and what is technical use of h parameter model
Define what is meant by operating point?
What is effective communication?
3. What is the command to unlock the BTS
im ranjith having 63%in my b tech with 25 backlogs,cleard all .. im having 1100 in gre and 90 in my toefl can i get visa? im planning spring 2011 pls help me i applied for i20 im applying 4 universities pls help me can i get visa? shall i prefer canada if i could not get visa?
Define what are the main purposes for which a common-collector amplifier may be used?
What is the height of ESMA card?
I have an instrument that involves an electronic circuit. In circuit there is a PTC B754 (having operating voltage 230V). PTC is already damaged and same PTC is not available in market. Now what can i do to solve that problem.
Tell me why the shape of op-amp is triangular not other shape?
draw the interface diagram of 8085 microprocessor having input ports at 23H, 2FH, EFH, and output ports at 44H, 2FH, EFH, and FFH using NAND gates only.
Why opamp called operational amplifier?
proff of ERLANG B formula???