Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void) {
- int M, m, max, min;
- while (M != 0) {
- scanf("%d", &M);
- scanf("%d", &m);
- if (m!=0) {
- if (M<m){
- max=m;
- min=M;
- } else
- max=M;
- min=m;
- } else max=M;
- min=M;
- }
- printf("%d %d", max, min);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement