Guest User

Untitled

a guest
Mar 31st, 2020
79
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static int somasRecursivas(int num1, int num2) {
  2. if (num1 > 0 && num2 > 0){
  3. if (num2 == 0) {
  4. return num2;
  5. } else {
  6. return num1 + somasRecursivas(num1, num2 - 1);
  7. }
  8. }
  9. }
RAW Paste Data