find the minimum of three values inputted by the user
Answer Posted / 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 |
Post New Answer View All Answers
Explain indirection?
What is difference between structure and union in c programming?
write a program to concatenation the string using switch case?
Explain data types & how many data types supported by c?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
Write a program of prime number using recursion.
How can I invoke another program or command and trap its output?
How we can insert comments in a c program?
Do you have any idea about the use of "auto" keyword?
How to delete a node from linked list w/o using collectons?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
How do we make a global variable accessible across files? Explain the extern keyword?
What does 3 periods mean in texting?
Array is an lvalue or not?