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
Write a C program to count the number of email on text
What are derived data types in c?
What is the use of c language in real life?
Is a house a shell structure?
swap 2 numbers without using third variable?
Describe newline escape sequence with a sample program?
How will you delete a node in DLL?
Explain high-order and low-order bytes.
How can I sort more data than will fit in memory?
Is null equal to 0 in sql?
Add Two Numbers Without Using the Addition Operator
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What is difference between structure and union?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.