Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 619 Bytes

exercise.md

File metadata and controls

17 lines (13 loc) · 619 Bytes

Arrays 101

Objectives

  1. Create an empty array of integers of size 10
  2. Create an arrays of strings and fill it with 4 different strings
  3. Can you mix different data types in one array?
  4. You've created an empty array with the size of 10. Once declared can you add items to it? Can you add 50 items?
  5. There is an array called 'games'. Assign the string "Donkey Kong" to the first place in the array
  6. There is an array called "movies". Print the following:
    1. The array itself
    2. The second item in the array
    3. The length of the array

Solution

Click here to view the solution.