Learning To Code #4 (Array exercise + Chart progress)

in #coding4 years ago

I found another great Array exercise that seems easy but actually is kind of challenging.

  1. Make an array where are 3 random numbers.
  2. Ask for a number.
  3. Print out duplicated Array (how many times you duplicate it depends on the number that the user gave you).

For an example:
Numbers are - {1, 2, 3}
Given number - 4
Output should be - {1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3}

PS: Don't use ArrayList, that way it's a very simple exercise.
Don't do it like this. ↓
list.png

Feel free to hit me up if you got any questions!🤓


How far is my BTC chart?📈 I got an idea how to do it now and I will start working on it. I'm sure that I can get it done by today so make sure to follow my blog and let me know what more do you like to see here!

Peace!✌️