pablosotol

función suma

Jun 28th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. int suma(int inicio, int fin, Cells& board){
  2.     int cont = 0;
  3.     for(int i=inicio; i<fin; i++){
  4.         for(int j=inicio; j<fin; j++){
  5.             if(board[i][j]==1){
  6.                 cont++;
  7.             }  
  8.         }
  9.     }
  10.     return cont;   
  11. }
Advertisement
Add Comment
Please, Sign In to add comment