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


Please Help Members By Posting Answers For Below Questions

What are actual arguments?

652


i want to know the procedure of qualcomm for getting a job through offcampus

1945


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

648


What is the purpose of scanf() and printf() functions?

725


What is string function in c?

544






How do you do dynamic memory allocation in C applications?

634


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

710


What do you mean by dynamic memory allocation in c?

656


What are the uses of a pointer?

685


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1598


Explain pointer. What are function pointers in C?

630


What does return 1 means in c?

591


Write a program to reverse a linked list in c.

649


what do you mean by inline function in C?

620


How to establish connection with oracle database software from c language?

1681