Mathématiques

Question

Exemple: Faire tourner l'algorithme ci-dessous à la main en complétant le tableau
Le programmer en Python et comparer.
x 1
Tant que x ≤ 5
f←x²+1
xx +1
afficher f
Fin Tantque
Tableau de suivi :
Variables
æ
test
En langage Python
while x <= 5:
f
f=x** 2+1
x=x+1
print ()
affichage

0 Réponse

Autres questions