steify avatar

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

steify

Published: 10 Apr 2021 โ€บ Updated: 10 Apr 2021Learning To Code #4  (Array exercise + Chart progress)

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

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

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

Written by

Read more #coding posts


Best Posts From steify

We have not curated any of steify's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From steify