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

Can someone help me with this whole page? Hurry it's due Monday!
6x squared plus 12x plus 13 equals 2x squared plus 4
What is the smallest multiple of 6 and 10
During a recent winter, the ratio of deer to foxes was 7 to 3 in a town. If there was 210 foxes in the town, what was the number of deer in the town?
I need help with the blanks
Can the sum of two mixed numbers be equal to 2 ? Explain why or why not.
find the value of x to the nearest whole number. Tan x(degree) = 1.732
help help help help!
what are the factor pairs of 38
what does imperialism mean?