Début bonbons maximum achetés ( réel argent, réel prix)
Si argent > 0 ET prix > 0
bonbons achetés = 0
Tant que argent >= prix
bonbons achetés ← bonbons achetés + 1
argent = argent-prix;
Fin Tant que
retourner bonbons achetés
Fin Si
Sinon
retourner argent et prix doivent être supérieur à 0
Fin Sinon
Fin bonbons maximum achetés
Last active
April 15, 2020 21:11
-
-
Save pierrealexaline/e56e944a8142a2c412372a7fcd3002d8 to your computer and use it in GitHub Desktop.
WCS - Créé un algorithme en pseudo-code
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Merci à Benjamin Dexant pour sa subtile correction :)°