Exercice 4
Ecrire un algorithme en python qui affiche le triangle suivant:
Solution
1 2 3 4 5 |
number_lines = 10 for i in range(0 , number_lines + 1): for j in range(i + 1 , number_lines + 1): print( j , end = " ") print("") |
Younes Derfoufi
CRMEF OUJDA
1 thought on “Solution Exercice 4: programme python qui affiche un triangle formé des chiffres”