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


Please Help Members By Posting Answers For Below Questions

Explain indirection?

651


What is difference between structure and union in c programming?

575


write a program to concatenation the string using switch case?

1564


Explain data types & how many data types supported by c?

588


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

3847






Write a program of prime number using recursion.

623


How can I invoke another program or command and trap its output?

621


How we can insert comments in a c program?

636


Do you have any idea about the use of "auto" keyword?

670


How to delete a node from linked list w/o using collectons?

2093


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.

1597


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.?

632


How do we make a global variable accessible across files? Explain the extern keyword?

1427


What does 3 periods mean in texting?

604


Array is an lvalue or not?

642