Rust Taskbook Level 2.6
Given an array of numbers:
let arr: [i8, 5] = [-1, 2, -3, 4, 5, 11];
Find the sum of those elements of this array that are greater than zero and less than ten.
Given an array of integers:
let arr: [u8; 5] = [1, 2, 3, 4, 5];
Print to the console the elements of this array that are even numbers.
Given an array of integers:
let arr: [u8; 5] = [1, 2, 3, 0, 4, 5];
Print the elements of this array to the console up to the first zero.