Module 8 – Why Does a Rust Program Look Like This?
Why fn Exists
fn main()fn means function.
Functions are reusable blocks of code.
Rust starts every program by calling a function named main.
Complete this lesson
Answer every check correctly to earn your lesson certificate. Feedback helps you review and try again.
Sign in · Save your progress and earn a certificate for this lesson.