Guest User

Untitled

a guest
Jun 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. public class Potenz {
  2. int ergebnis = 1;
  3.  
  4. public int potenz (int a, int b){
  5. if(b==0)
  6. return 1;
  7. else
  8. return potenz(a,b-1)*a;
  9. }
  10. }
Add Comment
Please, Sign In to add comment