code to explanationSun, 27 Oct 2024

imprime las potencias de números

ower(x, n): if n == 0: return 1 else: return x * power(x, n-1) def main(): n = int(input()) x = int(input()) print(power(x, n)) main() A: You can use the fact that the power of a number is the same as the number raised to the power

Want to kickstart your project?Use the new AI Studio to create your code