Learning To Code #4 (Array exercise + Chart progress)
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!โ๏ธ
Leave Learning To Code #4 (Array exercise + Chart progress) to:
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
- Things Didn't Go As Planned.
- Learning To Code #8 (ArrayList)
- New Project (MP3 Player) #1
- Learning To Code #7 (Loops)
- Learning To Code #6 (Number Guessing Game)
- Learning To Code #5
- How To Learn Coding
- Learning To Code #4 (Array exercise + Chart progress)
- Learning To Code #3
- Learning To Code #2
- Learning To Code #1
- Personal Sneaker Investments.๐ part 1.
- Air Jordan 11 Cool Grey.
- Air Jordan 5 Raging Bull.
- Nike Dunk Low Medium Curry.
- Air Jordan 11 Low IE Bred.
- Supreme/Nike SB Dunk Low.
- The Air Jordan 12 Twist.
- Nike Dunk Low PRM Medium Curry.
- Create your own Nike Dunk Low.