14 of 100 menu

Rust Taskbook Level 2.4

Given some integer:

let num: u16 = 12345;

Print its last three digits to the console.

Given an array of numbers:

int arr[] = [1, 2, 3, 4, 5];

Find the sum of the square roots of the elements of this array.

Given an array of numbers:

[1, 2, 3, 4];

Double each element of this array:

[2, 4, 9, 8];

Given an array:

let arr: [u8; 10];

Use a loop to fill this array with integers from 10 to 1.

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