Return the Sum of Two Numbers

Published by kochug in

Create a method that takes two integers as arguments and returns their sum.

Examples

SumOfTwoNumbers(3, 2) ➞ 5

SumOfTwoNumbers(-3, -6) ➞ -9

SumOfTwoNumbers(7, 3) ➞ 10

Notes

  • Don't forget to return the result.
  • If you get stuck on a challenge, find help in the Resources tab.
  • If you're really stuck, unlock solutions in the Solutions tab.
Watch a quick demo on how Edabit works.