Created
September 6, 2018 18:44
-
-
Save jerzyyy/03724d293520d226d42c3affa4f30a90 to your computer and use it in GitHub Desktop.
pseudo code
This file contains 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
debut bonbon (prix, argent) | |
bonbon= 0 argent= 12,47 prixx= 1,14 | |
Tant que argent - prix > 0 | |
argent <- argent - prix | |
bonbon <- bonbon + 1 | |
Fin de tant que | |
Si argent<= 0 et prix<= 0 | |
Retourner 0 | |
fin bonbon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment