2 of 100 menu

Rust Taskbook Level 1.2

Explain the difference between the i8 type and the u8 type.

Given an integer:

let num: i32 = 123;

Print the last digit of this number to the console.

Given an integer:

let num: i32 = 123;

Print the first digit of this number to the console.

Given an integer:

let num: i32 = 123;

Print to the console the sum of the first and last digits of this number.

Given an integer:

let num: i32 = 123;

Print the number of digits in this number.

Given an integer:

let num: i32 = 1234;

Check if it is even or not.

Given a number:

let num: u8 = 10;

Check that this is a two-digit number.

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