Advertisement
evage

second

Sep 18th, 2021
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int a, b, c, d;
  6.     cout << "Ener x1, y1\n";
  7.     cin >> a >> b;
  8.     cout << "Ener x2, y2\n";
  9.     cin >> c >> d;
  10.     if ((a + b) % 2 == (c + d) % 2)
  11.         cout << "same color";
  12.     else
  13.         cout << "different color";
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement