View difference between Paste ID: QKxXrgZu and ddigYjzD
SHOW: | | - or go back to the newest paste.
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
		cout << endl;
9
		for(int j = 0; j < 9; j++){
10
			sudoku[i*width+j] = 1+i;
11
			cout << sudoku[i*width+j] << "   ";
12
		}
13
	}
14
}