1 min readOct 23, 2019
I ran your code and following was the output:
4 1 5 9 3 7 2 2 8
2 7 9 4 8 8 5 1 3
3 6 3 1 2 5 4 7 7
6 3 7 5 2 9 8 3 1
3 2 1 8 4 6 7 9 1
9 8 4 3 9 1 6 5 6
1 5 6 2 7 6 9 8 4
8 9 8 7 1 4 3 4 2
7 9 2 2 4 3 1 6 5
You can see numbers are repeating in the same rows and columns. Please, correct your code.