63 What is the output of the following code if x=2 and n=13?
1.
2.
def power(x,n):
if n==0:
4.
return 1
m į n o
6.
else:
Partial=power(x, n//2)
Result=partial * partial
if n%2==1:
7.
8.
9.
Result *= X
10.
return Result
Answers
Answered by
2
Answer:
hello,
Explanation:
CODE:
def power(x,n):
if n==0:
return 1
else:
Partial=power(x, n//2)
Result=partial * partial
if n%2==1:
Result *= X
return Result
OUTPUT:
4096
hope it helps you
please mark brainliest
@ItzSnowySecret07
Similar questions