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

Tell whether the rates of change are constant or variable 16 over 1, 64 over 2, 144 over 3, 256 over 4
What is known about oligarchy in greece?
A police officer investigating an accident finds a skid mark of 115 ft in length. How fast was the car going when the driver applied the brakes? Round your answ
find the HCF of 140,210,315
What is a megalopolis
Fin each unit rate. Determine which is lower. Ingredient C: 1/4 cup for 2/3 serving Ingredient D: 1/3 cup for 3/4 serving
What is the net movement of molecules from high to low concentrations?
Use the distributive property to simplify the expression 6(s-9
what is the axis symmetry of the equation? y=(x-3)^2+4
Find a quote by Twain. Write the quote and explain why it holds meaning for you.