Write a progam in 'C' to enter two integers and to print the minimum integers?
#include< 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
Output :-
Enter two unequal integers
25 35
The minimum integer = 25
0 comments:
Post a Comment