write a c programme to identify the biggest smallest and
middle value of the given three numbers

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

is below 2 ohms earth resistance is good for mobile tower

1740


If the address bus id 20bits.then the memory space is ?

613


What is engineering?

605


What is transistor?

641


compare the delay in sending x-bit msg over k-hop path in ckt switched nw nin lightil loaded packet swithed nw. the ckt setup time is s per hop,the packet size is p bits n data rate is' b' bps under what condition does packet nw have lower delay?

1470






what is a bleeder resistor?

1582


Define modulation.

581


Define fan-in and fan-out?

544


What is rfid in developing stage?

578


A description of the fundamental elements that are required to make a digibox. I assume that they all record nowadays?

557


also send me aptitude question paper

1500


The linearity error for a digital input is indicated by what???

1608


I am studing Diploma Electronics from International Council for Management Studies-CHENNAI. Is it useful for getting engineering job within india or international ?

1545


what are the Technical Specifications of D/240SC-T1

599


what questions are asked in this round for ece

1485