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 maximum integers?

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

For eg :-

Output :-

Enter two unequal integers
25 35
The maximum integer = 35

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP