Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- int m;
- int n;
- int sum;
- cin >> m;
- cin >> n;
- if(m > n){
- m = m + 5;
- cout << "m = " << m << endl;
- } else
- {
- n = n / 4;
- }
- sum = m + n;
- if (sum % 2 == 0)
- {
- cout << "Sum is even.";
- }else
- {
- cout << "Sum is odd.";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement