Start learning free

LESSON 135 OF 349 · LOOPS & GLOBAL VARIABLES

Exercise: Sum Of Numbers in Swift

Lesson

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

Once computed, print this sum to the console.


Assignment
Follow the Coding Tutorial and compute the sum!


Hint
Look at the examples above if you get stuck.


STEP 1 OF 4
    Ctrl + Enter to check

    Sum Of Numbers in Swift

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