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
Is null always equal to 0(zero)?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
What is the difference between array and linked list in c?
how is the examination pattern?
How can I convert a number to a string?
What is zero based addressing?
Is array name a pointer?
write a c program in such a way that if we enter the today date the output should be next day's date.
Define Spanning-Tree Protocol (STP)
What is a stream?
Explain what is the general form of a c program?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What are the 5 types of organizational structures?
Explain how can I read and write comma-delimited text?
What is the significance of c program algorithms?