16 of 100 menu

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.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline