Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string s, t;
- cin >> s >> t;
- ll n = s.size(), m = t.size(), sum1 = 0, sum2 = 0, sum = 0;
- if (s[n - 1] % 2 == 0)
- sum1 = s[n - 1];
- if (s[m - 1] % 2 == 0)
- sum2 = s[n - 1];
- sum = sum1 + sum2;
- if (sum % 2 == 0)
- cout << "Even";
- else
- cout << "Odd";
Add Comment
Please, Sign In to add comment