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

Lana wants to graph the height of an amusement park ride as it travels along the track. A. The ride begins by climbing slowly up a hill. B. It moves straight al
someone please tell me how to message people on here
Please help need the answer now!!
In a certain breed of cat, short hair is a dominant trait over long hair. If a heterozygous female cat is crossed with a long-haired male cat, what percent of t
3. Use the FOIL method to multiply binomials. Part I: When multiplying binomials, the FOIL method helps you to organize the multiplication of each term of the f
Factor the trigonometric expressionplease include the steps thank you !!will give branliest​
What would the complementary strand of GTCCGTAACGTAT be?
2x² + 8x²8x-32 how do find the x and y intercept?​
Help me solve this problem please
Which statements describe how the nation reacted to the fear of communism in the 1950s? Choose all answers that are correct 0 New immigration laws allowed entry