Untitled

 avatar
unknown
plain_text
2 years ago
386 B
3
Indexable
#include <iostream>
#include <string>
#include <vector>
using namespace std;

int голоса(bool a, bool b, bool c){
	int r = 0;
	if (a == 1) r += 1;
	if (b == 1) r += 1;
	if (c == 1) r += 1;
	return r;
}
int main()
{
	bool a, b, c;
	cin >> a >> b >> c;
	cout << "za = " << голоса(a, b, c) << "\t";
	cout << "protiv = " << 3 - голоса(a, b, c) << "\t";
}
Editor is loading...