Answers for "return programming"

1

return programming

return
if n>=0:
Posted by: Guest on November-19-2020
0

return programming

import math

n=int(input("inserte la cantidad de exponentes de una potencia de 2:"))
suma=0

if n>=0:
    for i in range(n+1):
        suma=suma+(math.pow(2,i))
        
    print("el resultado de la suma de sus resultados es:", suma)
Posted by: Guest on November-19-2020

Python Answers by Framework

Browse Popular Code Answers by Language