Skip to content

Instantly share code, notes, and snippets.

@swann44
Created February 1, 2020 10:06
Show Gist options
  • Save swann44/2c94016815d1ff9225ba533fb9e795e7 to your computer and use it in GitHub Desktop.
Save swann44/2c94016815d1ff9225ba533fb9e795e7 to your computer and use it in GitHub Desktop.
Début comptage bonbon (argentDispo, prixBonbon)
argentDispp<-lire nombre réel
proxBonbon<-lire nombre réel
nbBonbon = 0
si argentDispo> 0, prixBonbon> 0 et que argentDispo> prixBonbon
tant que prixBonbon * nbBonbon <= argentDispo
nbBonbon = nbBonbon + 1
fin tant que
fin si
fin comptage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment