Untitled
unknown
plain_text
2 years ago
284 B
5
Indexable
#include <iostream>
using namespace std;
int main()
{
int a, c =0;
for(int i = 0; i <5 ; i++)
{
for(int b = 0; b <5 ; b++)
{
cin >> a;
if (a == 1)
{
c++;
}
}
}
cout << c;
}
Editor is loading...