nbr stands for number. It is used to generate numbers for the array from 0 to n*n-1
Type: Posts; User: Norm
nbr stands for number. It is used to generate numbers for the array from 0 to n*n-1
For testing it will be easier to talk about the elements in the array if they were all unique. The code I posted in post#4 will generate all unique numbers.
To see what the code is doing add a...
Can you explain what is wrong with the output?
A suggestion for testing. Make the changes you see here on the three lines with comments:
int n = 4; // input.nextInt();
int...
Please post the program's output and add some comments saying what is wrong and show what the output should be.