Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- valeur_pi = 1
- Ecrire ("Entrez epsilon")
- Lire(epsilon)
- x = 3
- y = 1
- Tant que 1/x < epsilon
- valeur_pi = valeur_pi + ((-1)^y) * 1/x
- y = y + 1
- x = x + 2
- Fin tant que
- valeur_pi = valeur_pi * 4
- Ecrire(valeur_pi)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement