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

Solve for x in the diagram.
In the equation hcl(g) + h2o(l) ® h3o+(aq) + cl–(aq), which species is a brønsted-lowry acid? a. hcl
Evan drew a diagram to illustrate radiation what do the arrows represent A. Gases missing with particles B. liquid moving through a vacuum C. moving Particl
Solve for x. a. 5 b. 2.5 c. 7.5 d. 10
There are 20% more goblins than wizards in the magic club. There are 220 goblins and wizards altogether in the magic club. How many goblins are in the magic clu
When someone has been diagnosed with small cell lung cancer and begins chemo; what is the prognosis?
What is the area of a parallelogram that has 4 m and 7 m?
What expressions are equivalent to 649×36?
Which functions are the same as their inverse functions? please help!!!
What's the length of side b in the figure below?