top of page

Incrementing Variables By More Than One

To increment variables we may also use the += operator. This will make your variable equal to itself plus a number. This of course may be interchanged with -= *= and /=

Example:

Output:

incmorethan12.png
incmorethan11.png

The statement will add 5 each time until the condition is met.

  • Twitter
  • LinkedIn
  • discord-logo--v2
  • kisspng-github-pages-logo-repository-fork-github-logo-1-magentys-5b69de71b51265

Dragon Eye Intelligence LLC

bottom of page