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);
min=a<b?(a<c?a:c):(b<c?b:c);
printf("the minimum numbers of %d,%d and %d is=%
d",a,b,c,min);
getch();
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can I dynamically allocate arrays?
What is c variable?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
Explain what is the difference between null and nul?
What is the difference between the local variable and global variable in c?
Is python a c language?
Why is c platform dependent?
What is the difference between strcpy() and memcpy() function in c programming?
What is the easiest sorting method to use?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
If you know then define #pragma?
Explain what does the function toupper() do?
When should I declare a function?
what are bit fields? What is the use of bit fields in a structure declaration?
Difference between linking and loading?