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

What is the difference between renewable and non-renewable resources?
When a sodium atom gains or loses a valence electron, it becomes a charged particle called a/an ____________. A.neutron B.proton C.ion D.salt molecule
In which parts of “I hear America singing” are adjectives used to enhance the effects of parallelism?
What type of pollution is believed to have the most impact on an ecoysystem?
Find the x and y intercepts of the graph of each equation 1: x - 2y = 2 2: -3x + 3y = 7 3: 3x - 5y = -20
Match these items. 1. Virginia Roger Williams 2. Pennsylvania Thomas Hoooker 3. Rhode Island
what is the solution set for the following system of equations 5x-3y-10=0 x+y-7=0
which is one major function of the endomembrane system producing and storing energy transporting substances in a cell manufacturing proteins directing the cel
Why did Great Britain sieze American ships
in what the way an ancient greek theater was built