Published: 09 Apr 2021 › Updated: 09 Apr 2021
Learning To Code #3
Today I decided that sometimes I should post some exercises that helped me a lot while learning basic stuff. Once I wanted to learn more about Arrays so I asked for an exercise from my programmer friend who has helped me a lot.
Array exercise 1:
- Make an array where are 10 random numbers.
- Ask the user for a number.
- Make an array where are all the numbers from the first array that are smaller than the given number.
Output should be (example):
Array exercise 2:
- Make an array where are 10 random numbers.
- Ask the user for a number.
- Make an array where are all the numbers from the first array until the number that the user gave you is smaller than the next number on the array.
Output should be (example):
Another example:
If you got any questions feel free to hit me up!🤓
Tips: To get the size for the second array try to use loop.
Leave Learning To Code #3 to:
Read more #estonia 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.