Division in Swift
Level 113 keystrokes
Divides the integer 15 by 3 and prints the result, 5. Both operands are Int, so this is integer division.
Swift code
// Int / Int gives an Int (the fractional part is dropped): 15 / 3 = 51print(15 / 3)Output
5
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