Posts
Learning To Code #4 (Array exercise + Chart progress)
25
@steify
ยท0 views
1 min read
I found another great Array exercise that seems easy but actually is kind of challenging.
- Make an array where are 3 random numbers.
- Ask for a number.
- 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!โ๏ธ