Write a progam in 'C' to enter two integers and to print the maximum integers?
#include< 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
0 comments:
Post a Comment