Module 8 – Why Does a Rust Program Look Like This?
Compare the Three Languages
| Pascal | Ada | Rust |
|---|---|---|
| program | procedure | fn |
| begin | begin | { |
| WriteLn | Put_Line | println! |
| 'Hello, World!' | "Hello, World!" | "Hello, World!" |
| end. | end Hello; | } |
Different syntax. Same concepts.
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.