Created
September 4, 2018 12:25
-
-
Save MattCrl/aaf6199d10256118bd251df0df7ba435 to your computer and use it in GitHub Desktop.
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 calc_bonbon (argent, prix) | |
| nb_bonbon = 0 | |
| prix_actuel = prix | |
| Si argent ou prix <= 0, alors | |
| retourner 0 | |
| Sinon | |
| Tant que prix_actuel <= argent | |
| nb_bonbon = nb_bonbon + 1 | |
| prix_actuel = prix_actuel + prix | |
| Fin Tant que | |
| Fin Si | |
| Retourner nb_bonbon | |
| Fin calc_bonbon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment