from math import cos
u,n = 1,0
while abs(u-cos(u)) > 10**(-8):
    u = cos(u)
    print('n = {} et u = {}'.format(n,u))
    n += 1
