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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is getch c?

1251


List the difference between a While & Do While loops?

1057


What is the difference between text files and binary files?

1303


explain what is fifo?

1033


What is the use of a static variable in c?

1016


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1012


Write a C program in Fibonacci series.

1056


difference between object file and executable file

6657


What is the difference between array_name and &array_name?

1254


What is the use of ?

1005


In a byte, what is the maximum decimal number that you can accommodate?

1086


Define VARIABLE?

1119


Why we use conio h in c?

1167


Write a code to remove duplicates in a string.

990


Compare interpreters and compilers.

1037