Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. static public double rec_raise(double x, int k) {
  2. if (k == 0) {
  3. return 1.0;
  4. } else {
  5. counter++;
  6. return x * rec_raise(x, k - 1);
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement