Guest User

Untitled

a guest
Feb 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. int puzzle[9][9]={{1, 0, 0, 0, 0, 0, 4, 9, 0},
  2. {0, 0, 0, 0, 0, 0, 7, 0, 0},
  3. {3, 9, 6, 0, 5, 0, 0, 0, 0},
  4.  
  5. {6, 0, 0, 9, 0, 0, 0, 0, 0},
  6. {0, 0, 0, 0, 7, 0, 0, 0, 0},
  7. {0, 4, 9, 0, 0, 1, 8, 2, 0},
  8.  
  9. {4, 0, 0, 0, 8, 7, 0, 0, 0},
  10. {0, 0, 3, 0, 0, 2, 0, 0, 5},
  11. {0, 0, 0, 0, 0, 0, 0, 0, 0}};
  12.  
  13. int puzzle[9][9]{};
  14. for (int i{}; i != 9; ++i) {
  15. for (int j{}; j != 9; ++j) {
  16. file >> puzzle[i][j];
  17. }
  18. }
Add Comment
Please, Sign In to add comment