Challenge 1 - Declare an Array

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


The output of the code should be:


Coding Exercise

It is recommended​ that you try solving the exercise yourself before viewing the solution.

fn test() {
 // Write code here!

Good luck!🤞