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
Why is python slower than c?
How does sizeof know array size?
What is the use of printf() and scanf() functions?
What is the difference between struct and union in C?
What is function prototype in c with example?
How can you access memory located at a certain address?
Where we use clrscr in c?
Write a program to print factorial of given number using recursion?
What are the different types of data structures in c?
How many keywords (reserve words) are in c?
What functions are used in dynamic memory allocation in c?
When is the “void” keyword used in a function?
What is difference between stdio h and conio h?
Write a program to print fibonacci series using recursion?
What are static variables in c?