I'm a first year computer science student.
I have been given an exercise and have no clue where to start.
Tried using count functions but have can't get the output that I need!
Any help would be greatly appreciated!!!
Thanks
Vid

input:

0 0 0 0 1 0 1 0
0 0 1 0 0 1 0 1
1 0 0 0 1 0 0 1
1 0 0 0 1 1 0 1
1 1 0 0 0 1 1 0
0 1 1 0 1 0 0 1
1 1 1 0 0 1...