Initial work

This commit is contained in:
bluepython508
2023-11-01 08:55:40 +00:00
parent 996ea45153
commit 688d1ec426
48 changed files with 1148 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
def exp(n, p):
if p == 0: return 1
return n * exp(n, p - 1)
base = float(input("Base? "))
power = int(input("Exponent? "))
print(exp(base, power))