Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. func doubleTheInput(inputValue: Int) -> Int {
  2. return inputValue*2
  3. }
  4.  
  5. let twoTimesFour = doubleTheInput(inputValue: 4)
  6.  
  7. print(twoTimesFour)
  8. //Output: 8
  9.  
  10. print(doubleTheInput(inputValue: 16))
  11. //Output: 32
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement