Posts

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

avatar of @steify
25
@steify
ยท
0 views
ยท
1 min read

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. โ†“

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!โœŒ๏ธ