Browse Source

potenzieren

remotes/origin/H.F.F/Taschenrechner
fdai7446 2 years ago
parent
commit
7679c83e62
  1. 11
      Taschenrechner.java

11
Taschenrechner.java

@ -15,4 +15,15 @@ public class Taschenrechner {
return a / b; return a / b;
} }
int potenzieren(int a, int b) {
int temp = 1;
for(int i = 0; i < b; i++) {
temp = temp * a;
}
return temp;
}
} }
Loading…
Cancel
Save