Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Wednesday, December 30, 2009

write a program in 'C' to enter three integers and print the minimum integer?



#include<stdio.h>
main()
{
int a, b, c, min;
printf("Enter three integers\n");
scanf("%d %d %d", &a, &b, &c);
min = (a<
b)?a:b;
min = (min<
c)?min:c;
printf("The minimum integer is = %d\n", min);
return(0);
}

For eg :-

Output :-

Enter three integers
12 20 50
The minimum integer is = 12

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP