Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func doubleTheInput(inputValue: Int) -> Int {
- return inputValue*2
- }
- let twoTimesFour = doubleTheInput(inputValue: 4)
- print(twoTimesFour)
- //Output: 8
- print(doubleTheInput(inputValue: 16))
- //Output: 32
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement