Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Instructions:
- Given two integer numbers
- Your task is to
- write a function that prints their sum to the standard output (stdout)
- Note that your function will receive the following arguments:
- a
- which is the first integer number
- b
- which is the second integer number
- def sum(a, b)
- a + b
- end
- $stdout.puts sum(5, 6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement