Script Python #43 (Hors-série) : Triplet pythagoricien (2de forme)
/image%2F6758842%2F20240207%2Fob_490aa9_triplet-pythagoricien-1.png)
Pour rappel, on appelle triplet pythagoricien tout triplet d'entiers (x, y, z) tels que :
x² + y² = z² (et il y a une infinité).
Pour rappel, le travail demandé consistait à :
- Écrire un script qui permet d'afficher les 10 premiers triplets pythagoriciens (2de forme).
En voici le script (2de forme) :
Lire la suite :
Partager cet article
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article
/image%2F6758842%2F20220901%2Fob_a21934_pco-logo-6b.png)
/image%2F6758842%2F20211012%2Fob_1dc55a_de-vous-a-nous-2.jpg)
/image%2F6758842%2F20211012%2Fob_3b2946_e-learning.jpg)