Untitled
unknown
plain_text
2 years ago
482 B
4
Indexable
#include <iostream> using namespace std; int votion(int a, int b, int c) { int m = 0, l, d = 0; l = a + b + c; if (l == 0) { return d; } if (l == 1) { return d=0; } if (l == 2) { return d = 1; } if (l == 3) { return d = 1; } }; int main() { setlocale(LC_ALL, "Russian"); int a, b, c,d; cin >> a >> b >> c; d = votion(a, b, c); if (d == 0) { cout << "Они против"; } if (d == 1) { cout << "Они за"; } }
Editor is loading...