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 are the usage of pointer in c?
What is the difference between declaring a variable and defining a variable?
What is the general form of #line preprocessor?
What is a constant and types of constants in c?
What are the types of assignment statements?
What is main () in c language?
Is a house a mass structure?
Explain what does the format %10.2 mean when included in a printf statement?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
How do I read the arrow keys? What about function keys?
How do you determine whether to use a stream function or a low-level function?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Explain what math functions are available for integers? For floating point?