Negative Numbers in Swift
Level 115 keystrokes
Adds a negative number and a positive number and prints the result, 15.
Swift code
// The unary minus makes -10 negative: -10 + 25 = 151print(-10 + 25)Output
15
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+× 1