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

Why is python slower than c?

1096


How does sizeof know array size?

1131


What is the use of printf() and scanf() functions?

1137


What is the difference between struct and union in C?

1328


What is function prototype in c with example?

1098


How can you access memory located at a certain address?

1131


Where we use clrscr in c?

1142


Write a program to print factorial of given number using recursion?

1023


What are the different types of data structures in c?

1171


How many keywords (reserve words) are in c?

1146


What functions are used in dynamic memory allocation in c?

1094


When is the “void” keyword used in a function?

1513


What is difference between stdio h and conio h?

1391


Write a program to print fibonacci series using recursion?

1071


What are static variables in c?

1089