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 |
Can u please post some questions of MTNL junior telecom officer exam?
why can't we share the charging of one phone to another phone? it would be useful during emergency times!! And the mode of sharing should be wireless...
WHERE MODERN TECHNOLOGY USEING IN STEEL INDUSTRY.AND WHAT IS THE NAME OF THE TECHNOLOGY
What is the wave equation for the sound waves encountered in smart cell phones, specifically android?
Given a light which may blink at a random time. There are two players who has to press a button when light blinks. The person who gets 20 pts first is declared as winner. Design FSM for this gaming event.
Why 50Hz power supply is standard?
why u have choosen ece?
Why is fet known as a unipolar device?
In the OTA, the transconductance is controlled by A The ac supply voltage B A bias current C The input signal voltage D The manufacturing process
what is scada what is plc what is hmi what is drieves whatis timmer what is counter what is automation
hoe to convert D flip flop to T flip flop
Definition of power electronics?