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.