Challenge Problem [Optional]

Challenge Problem [Optional]#

Note

This is an optional challenge problem!

Download starter code

Write a program utilizing for loops and Random to generate two random values and print all the products of the first random value starting at 1 and up until the second random value (inclusive). Both of these random values should be in the range of 1 to 10 (inclusive).

Here are some example outputs for various random values:

Note

Note that randomly generated values are bolded and underlined.

First random value: 3
Second random value: 7

Products of 3 until factor 7:
 3 times 1 = 3
 3 times 2 = 6
 3 times 3 = 9
 3 times 4 = 12
 3 times 5 = 15
 3 times 6 = 18
 3 times 7 = 21


As another example

First random value: 9
Second random value: 2

Products of 9 until factor 2:
 9 times 1 = 9
 9 times 2 = 18