Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x, L, M;
- L = 0;
- for (x = 4, L = 5; L > 0; L -= 1, x += 9) {}
- int x1 = x;
- for (x = 5, L = 4; L > 0; L -= 1, x += 9) {}
- int x2 = x;
- M = max(x1, x2);
- if (M < L) {
- M = L;
- L = x;
- }
- cout << L << endl << M << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment