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
Which is the pin no of CN1 TERMINAL and the parameter using in delta servo drive for auto/man input and start forward input
box1-2 box2-12 box3-350 using multiplication and division only bring 74 in box 3 in 3steps
explain the trasistor sizing procedure for a four inputNOR and four input NAND Gate?
Define what is meant by voltage regulation of a dc power supply?
In what does the Gas Leds emit radiation?
How many GDA exists for a group ?
Why r-c filters are suitable only for light loads?
What are the two modes of mosfet?
i m i n3rd ye of btech EC branch and have been placed in sftware company..wat sghd i do to improve my skills in 4th yr..i have a gd academic background.
sir, please send HPCL INFORMATION SYSTEMS OFFICER SYLLABUS WITH PREVIOUS QUESTION PAPERS
please provide me the previous technical papers for ece branch conducted by hpcl
What is meant by cyclo-converter?
Define what is point contact diode?
how to design an ups and battery connections for ups .
what are the advantages of using a voltage follower amplifier?