Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5.     int sudoku[9*9];
  6.     const int width = 9;
  7.     for(int i = 0; i < 9; i++){
  8.         for(int j = 0; j < 9; j++){
  9.             sudoku[i*width+j] = 1+i;
  10.             cout << sudoku[i*width+j] << "   ";
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement