Last active
May 21, 2020 08:07
-
-
Save alyson-b69/747ecead410bc16790ccfefa92b9e287 to your computer and use it in GitHub Desktop.
BonbonsMax
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 CalculBonbonsMax (réel argent, réel prix) | |
CompteurBonbons <- 0 | |
Si argent>0 et prix>0 | |
Tant que argent >= prix | |
argent <- argent - prix | |
CompteurBonbons = CompteurBonbons + 1 | |
Retourner CompteurBonbons | |
Sinon | |
retourner "Erreur, vos valeurs sont incorrectes" | |
Fin si | |
Fin CalculBonbonsMax |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment