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

Electricity problem from Jan. 1959 issue of QST; Using Ohm's law find.
How does the stability of an ecosystem depend on its producers
how do you round 415,203 to the thousands place
Drew currently walks two miles every day after school but wants to take his workout to the next level. Which of these changes would you suggest he make to his r
Evaluate the expression when x = 7 and y = 2 x – y – 3 a. 2 b. 5 c. 6 d. 8
The senate power of advice and consent does not apply to
Please Help!!! A gym teacher orders 42 tennis balls. Each package contains 3 tennis balls. Which of the following equations represents the number (x) of package
How are archaea and bacteria alike? a. To survive, they must live in cold environments. b. Their cells are small and lack a nucleus. c. Their genetic materia
Who was the king of England in 1612
how was the roman legislative branch organized