7 lines
No EOL
82 B
Python
7 lines
No EOL
82 B
Python
def f(a,m):
|
|
i = 1
|
|
n = 0
|
|
while n <= m:
|
|
i = i * a
|
|
n = n + 1
|
|
return i |