15 of 100 menu

Rust Taskbook Level 2.5

Given an array of numbers:

let arr: [i8, 5] = [1, 2, -3, 4, -5];

Find the sum of the positive elements of this array.

Given an array of numbers:

let arr: [u8; 5] = [1, 2, 3, 4, 5];

Print the elements of this array to the console in reverse order.

Given an array of strings containing integers:

let arr: [&str; 3] = ["123", "456", "789"];

Transform this array so that the values ​​of the new array become integers:

[i16, 3] [123, 456, 789];
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