Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Wednesday, December 30, 2009

Write a progam in 'C' to enter two integers and to print the minimum integers?

#include<stdio.h>
main()
{
int x, y, min;
printf("Enter two unequal integers\n");
scanf("%d %d", &x, &y);
min = (x>y)?y:x;
printf("The minimum integer = %d\n", min);
return(0);
}

For eg :-

Output :-

Enter two unequal integers
25 35
The minimum integer = 25

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP