Start learning free

LESSON 139 OF 348 · LOOPS & GLOBAL VARIABLES

Exercise: Sum Of Numbers in Rust

Lesson

Use a for loop to compute the sum of all numbers from 14 to 73.

Once computed, print this sum to the console.

STEP 1 OF 4
    Ctrl + Enter to check

    Sum Of Numbers in Rust

    Keep going with RustAbout 340 step-by-step lessons, from your first line of code to coding interviews. Free to start.
    Start learning free