Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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);
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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the sizeof () a pointer?

1048


What is time null in c?

1111


Tell me what are bitwise shift operators?

1173


Is c easy to learn?

1032


Tell us two differences between new () and malloc ()?

1275


What is the heap in c?

1124


Explain what are the advantages and disadvantages of a heap?

1127


What is a struct c#?

1099


What is quick sort in c?

1157


Explain what is dynamic data structure?

1222


What is c value paradox explain?

1162


Why shouldn’t I start variable names with underscores?

1115


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2843


In c programming language, how many parameters can be passed to a function ?

1167


How can I generate floating-point random numbers?

1203