Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "ru");
- int number;
- int result = 0;
- for (int i = 0; i < 9; i++) {
- cout << "Введите 0 или 1: ";
- cin >> number;
- result += number;
- }
- if (result % 2 == 0) {
- cout << "Положительное решение" << endl;
- }
- else {
- cout << "Отрицательное решение" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment