Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

geometric progression in python

def geometric_progression(a1, n, q):
    print(a1)
    for i in range(1, n + 1):
        power = i - 1
        t = a1 * q ** power
        print(t)
 
PREVIOUS NEXT
Tagged: #geometric #progression #python
ADD COMMENT
Topic
Name
4+7 =