Untitled

mail@pastecode.io avatar
unknown
c_cpp
8 months ago
199 B
0
Indexable
Never
#include <iostream>
using namespace std;


int main()
{

	int a = 0, ones=0;


	for(int i = 0; i <25; i++)
	{

		cin >> a;
		
		if (a == 1) { ones++; }

	}

	cout << ones;


}