Addition in Swift

Level 113 keystrokes

Adds 10 and 5 and prints the result, 15.

Swift code

// The sum is computed first, then printed: 10 + 5 = 15
1print(10 + 5)

Output

15
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Swift code and how often they appear.

  • (× 1
  • )× 1
  • +× 1

More Swift examples at level 1

← Swift typing practice