Last active
September 22, 2019 17:09
-
-
Save stephanBerger/ec6452551ec8d63ffea7be6657631225 to your computer and use it in GitHub Desktop.
Algorithmique et pseudo-code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Début calculNombreBonbons(réel money, réel price) | |
money ← 12.47; | |
price ← 1.14 | |
entier candies ← 0 | |
Si money > 0 ET price > 0 | |
Tant que (money - price) >= 0 | |
candies ← candies + 1 | |
money ← money - price | |
Fin Tant que | |
Fin Si | |
afficher candies | |
Fin CalculNombreBonbons |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment