find the minimum of three values inputted by the user
Answers were Sorted based on User's Feedback
Answer / 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);
if(a<b)
{
if(a<c)
min=a;
else
min=c;
}
else
{
if(b<c)
min=b;
else
min=c;
}
printf("the minimum numbers of %d,%d and %d is=%
d",a,b,c,min);
getch();
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
Answer / neha tibrewal
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter three numbers");
scanff("%d%d%d",&a,&b,&c);
if(a<b && a<c)
printf("Minimum is %d",a);
elseif(b<a && b<c)
printf("Minimum is %d",b);
else
printf("Minimum is %d",c);
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What is the use of the function in c?
How pointers are declared?
helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.
Why does notstrcat(string, "!");Work?
How to write a program to receive an integer & find its octal equivalent by using for loop?
Write a program that an operator and two operands read from input operand operator on the implementation and results display.
Explain what is the best way to comment out a section of code that contains comments?
write a function that accepts an array A with n elements and array B with n-1 elements. Find the missing one in array B,with an optimized manner?
while initialization of array why we use a[][2] why not a[2][]...?
Can anyone help me with this please? Need to print the below values.. Thanks 1 1 2 1 2 3 1 2 3 4
What is function pointer and where we will use it