This program randomly generates a number between 1 to 10.
These numbers will be added to 100, 200, 300 ... 1000. repesctively.
The problem is that the last value is negative.
Why is the last result always negative? :(
1st for loop: generates 10 random numbers between 1 to 10 without repetition.
2nd for loop: generates 10 numbers between 1 to 10 in ascending order.
I use the formula:
first loop integer + (100 * second loop integer)
so what it does is that it displays 10 numbers from 100 to 1000 (in multiples of 100) with its first two digit (from the right) representing the randomly generated numbers from the 1st for loop.