python 3, j'ai pas indenté mais avec ou sans ça ne change rien.
Ce qui est bizarre c'est que ça marchait et j'ai changé la ligne d'au dessus et là ça marche plus
bon voilà tout le truc
import math
k=int(0)
n=int(input("n = "))
L=int(math.sqrt((1.0/(n**2))+(1.0/n))*(math.sqrt(k
+1.0)-math.sqrt(k))**2)
while k<=(n-1):
k=k+1
L=int(L+math.sqrt((1/(n**2))+(1/n)*(math.sqrt(k+1)
-math.sqrt(k))**2)
print(L)