Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  private static int oddSum(final int left, final int right) {
  2.         if (right<left)
  3.             return 0;
  4.         if (right % 2 == 0)
  5.             return oddSum(left+1,right);
  6.         else
  7.             return oddSum(left+1,right)+1;
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement