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
What is the sizeof () a pointer?
What is time null in c?
Tell me what are bitwise shift operators?
Is c easy to learn?
Tell us two differences between new () and malloc ()?
What is the heap in c?
Explain what are the advantages and disadvantages of a heap?
What is a struct c#?
What is quick sort in c?
Explain what is dynamic data structure?
What is c value paradox explain?
Why shouldn’t I start variable names with underscores?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
In c programming language, how many parameters can be passed to a function ?
How can I generate floating-point random numbers?