Link Search Menu Expand Document

Challenge 1: Declare an Array

Problem Statement

  • Declare an array, arr, of size 6 that has numbers divisible by 2 ranging from 0 to 10.
  • Print the value of arr

Output

The output of the code should be:

0,2,4,6,8,10

Coding Exercise

It is recommended‚Äč that you try solving the exercise yourself before viewing the solution.


fn test() {
 // Write code here!
}

Good luck!ūü§ě