partie1_ex29_2.py

Created by cahier-indice-algo-1techno

Created on April 22, 2022

149 Bytes


def CA(n):
    C = 4
    Total = 4
    for k in range(1, n):
        C = C * 1.05
        Total = Total + C
    return Total, C