daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Mar 24th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. valeur_pi = 1
  3.  
  4. Ecrire ("Entrez epsilon")
  5. Lire(epsilon)
  6.  
  7. x = 3
  8. y = 1
  9.  
  10. Tant que  1/x < epsilon
  11.  
  12.     valeur_pi = valeur_pi + ((-1)^y) * 1/x
  13.     y = y + 1
  14.     x = x + 2
  15.  
  16. Fin tant que
  17.  
  18. valeur_pi = valeur_pi * 4
  19.  
  20. Ecrire(valeur_pi)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top