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


Please Help Members By Posting Answers For Below Questions

Is null always equal to 0(zero)?

589


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?

610


What is the difference between array and linked list in c?

606


how is the examination pattern?

1600


How can I convert a number to a string?

613






What is zero based addressing?

722


Is array name a pointer?

608


write a c program in such a way that if we enter the today date the output should be next day's date.

1685


Define Spanning-Tree Protocol (STP)

649


What is a stream?

655


Explain what is the general form of a c program?

629


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

773


What are the 5 types of organizational structures?

554


Explain how can I read and write comma-delimited text?

661


What is the significance of c program algorithms?

685