Browse Source

potenzieren

remotes/origin/fdai7487-main-patch-56841
fdai7446 2 years ago
parent
commit
7679c83e62
  1. 11
      Taschenrechner.java

11
Taschenrechner.java

@ -15,4 +15,15 @@ public class Taschenrechner {
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