Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static public double rec_raise(double x, int k) {
- if (k == 0) {
- return 1.0;
- } else {
- counter++;
- return x * rec_raise(x, k - 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement