Untitled
Anonymous
plain_text
11/04/2023 6:15 PM
380 B
15
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...