Следите за новинками
в нашем Telegram канале. Жми, чтобы подписаться:)
12 of 100 menu
◀ ▶

Rust Taskbook Level 2.2

Find the arithmetic mean of all integers from 1 to 100.

Given an array of integers:

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

Print to the console the number of bytes occupied by this array.

Given a number:

let num: u16 = 12345;

Find the sum of the first and last digits of this number.

Given an array of integers:

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

Find the sum of the elements of this array.

Given some integer:

let num: u16 = 12345;

Output all its digits from the end to the console.

← →
↑
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