find the minimum of three values inputted by the user
Answer Posted / manish soni bca 3rd year jaipu
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,min;
printf("Enter the 3 values");
scanf("%d %d %d",&a,&b,&c);
if(a<b)
{
if(a<c)
min=a;
else
min=c;
}
else
{
if(b<c)
min=b;
else
min=c;
}
printf("the minimum numbers of %d,%d and %d is=%
d",a,b,c,min);
getch();
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
The __________ attribute is used to announce variables based on definitions of columns in a table?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Can i use “int” data type to store the value 32768? Why?
What are the types of operators in c?
Do you know what are bitwise shift operators in c programming?
Where can I get an ansi-compatible lint?
Why doesnt the call scanf work?
What is #include stdio h?
How can I get random integers in a certain range?
What is meant by 'bit masking'?
Define recursion in c.
What is the difference between ‘g’ and “g” in C?
What is spaghetti programming?
Differentiate between the expression “++a” and “a++”?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc