Hello World and Program Structure
Write your first Rust program and learn what fn main and println! do.
Vedi la lezione →Impara la sintassi di Rust passo dopo passo: variabili, tipi, stringhe, condizioni, cicli, funzioni, array, vettori e input.
Prova Rust onlineWrite your first Rust program and learn what fn main and println! do.
Vedi la lezione →Declare variables with let, allow changes with mut, and use constants and shadowing.
Vedi la lezione →Work with integers, floating-point numbers, booleans and characters, and convert between them.
Vedi la lezione →Use arithmetic, comparison and logical operators, and see how integer division works.
Vedi la lezione →Create, grow, search and split text with Rust's two string types.
Vedi la lezione →Choose what runs with if, else if and else, and use if as an expression.
Vedi la lezione →Repeat code with for over a range, while with a condition, and loop with break.
Vedi la lezione →Define functions with typed parameters and return values.
Vedi la lezione →Group values with tuples and store a fixed number of items in an array.
Vedi la lezione →Read a line from the keyboard and turn it into a number safely.
Vedi la lezione →