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
What is getch c?
List the difference between a While & Do While loops?
What is the difference between text files and binary files?
explain what is fifo?
What is the use of a static variable in c?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Write a C program in Fibonacci series.
difference between object file and executable file
What is the difference between array_name and &array_name?
What is the use of ?
In a byte, what is the maximum decimal number that you can accommodate?
Define VARIABLE?
Why we use conio h in c?
Write a code to remove duplicates in a string.
Compare interpreters and compilers.