find the minimum of three values inputted by the user
Answer Posted / neha tibrewal
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter three numbers");
scanff("%d%d%d",&a,&b,&c);
if(a<b && a<c)
printf("Minimum is %d",a);
elseif(b<a && b<c)
printf("Minimum is %d",b);
else
printf("Minimum is %d",c);
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is your stream meaning?
Should I learn c before c++?
What is the value of uninitialized variable in c?
What are the scope of static variables?
What is static identifier?
What are the types of data structures in c?
What is the difference between abs() and fabs() functions?
What is floating point constants?
What is pointer & why it is used?
Explain bitwise shift operators?
Which header file is essential for using strcmp function?
How do you initialize pointer variables?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
For what purpose null pointer used?
What is null in c?