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 do you know if you a getting a fever without thermometer.
In how many years will $ 21,136.18 amount to $ 75,514.55 at 27.54 % per annum when compounded quarterly? Select one: a.4.871 b.4.781 c.4.178 d.4.780
Steps of mitosis in simple terms?
how dis titan show contrast in this painting?​
I=\int\limits{\frac{x}{x^{4} -8x^{2} +16} } \,
Each cube in the prism is one cubic unit. What is the volume of this rectangular prism? Enter your answer in the box.
If you can purchase 3 sweatshirts for $96, how many can you buy for $108?​
Find the equation of the line that has a slope of 1/4 and passes through the point (-2,4). Please help!!!!
I need help with this please​
Which statement best explains why the evidence provided in the text is a fallacy? The speaker uses anecdotal evidence with phrases like ""back on the right trac