patirots
patirots patirots
  • 04-02-2018
  • Computers and Technology
contestada

If you wanted to continuously add 5 to a count, how would you code it? Why do you prefer this method?

(from code.org)

Respuesta :

Аноним Аноним
  • 05-02-2018
The word is increment. If you wan to keep adding adding 5 to a count you are incrementing the count. There are a few ways to do it and it also depends on the language that is being used.

PHP
$count = $count + 5;
$count++

C / C++
int count = 0;
count++;

Python
count += 5
Answer Link

Otras preguntas

Is the expression 3*5 + 3*9 in factored form or expanded form?
Read the passage from "Arachne and Athena" Part 1. "Oh, mother,” Arachne would answer. Then she would go on weaving. She thought that her work was far more impo
can anyone heelp me plzz
Your friend John thinks that English is the most important language in the whole world and since he already speaks it, he doesn't have to learn other languages.
what three conditions are necessary for natural selection to occur
I need some help with this answer please.
4) The area of a rectangle is 28 square inches and its perimeter is 22 inches. Find the dimensions of the rectangle.
the _____ theory views personality as primarily unconscious.
If someone could answer these it would make my day
What was the Installment plan?