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

How did slavery change in the first quarter of the nineteenth century?
how much did jason spill
what are the reactants in the first word equation above. magnesium+hydrochloric acid ⇒ magnesium chloride + hydrogen
a model of a car has a scale 1:20. the volume of the actual car is 12^3 find the volume of the model​
plz help me.....im new here
PLS ANSWER QUICKLY WILL GIVE BRAINLIEST Which point represents (5,-3) on the graph? A) point A B) point B C) point C D) point D
Wildlife sanctuary has 38 species of birds. They have 15 of each kind. A national zoo in the same city has 42 species of birds with 12 of each kind. Do they hav
Give me a sentence with the words my, mine, our, ours, your, yours, his, hers, it's, their, theirs,
Where does the author go to school?
Find the volume of the cylinder