Skip to content

Instantly share code, notes, and snippets.

@Nocktiss
Last active February 28, 2019 08:30
Show Gist options
  • Save Nocktiss/dbf614506f2d3429487fc3a66ea089f2 to your computer and use it in GitHub Desktop.
Save Nocktiss/dbf614506f2d3429487fc3a66ea089f2 to your computer and use it in GitHub Desktop.
Début compteur (reel argent, reel prix)
nombreDeBonbons = 0
si argent > 0 et que prix > 0
tant que prix <= argent
argent = argent - prix
nombreDeBonbons = nombreDeBonbons +1
fin tant que
retourner nombreDeBonbons
FIN nombre de bonbons entier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment