BINGO

Sep 10, 2013 at 12:26pm
Here i just try to create Bingo game...
Below i displayed the sample output...
I want to check how many rows are equal to zero. in the sample output in 1st row each element is zero .Like wise i want to check how many rows,column n diagonal values are equal to zero??? And if 5 row or column or diagonal are equal to zero then want to print as BINGO.



0 0 0 0 0 
0 2 4 0 1 
1 0 0 0 0 
0 0 2 0 1
0 1 2 0 2

Sep 10, 2013 at 3:18pm
what problem are you having or do you just want someone to write this ?
Sep 10, 2013 at 3:29pm
Just use a for loop and an array.

Declare a boolean "bool allZero = true" at the beginning of the loop, then set it to false as soon as you find a 0, or return false if you're un a function specifically written for the job.
Last edited on Sep 10, 2013 at 3:40pm
Topic archived. No new replies allowed.