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

) was your strategy successful in making a profit? why or why not?
Explain: a camel walks easily on sand surface than a man inspite of the fact that a camel is much heavier than a man
How to Decompose 1 3/8
How many 1/2 cup servings are there in 7/8 cup of peanut butter?
What is the noble gas configuration of lithium? (li)?
True or false preferring to drink alone is not a factor that contributes to drug addiction
a car travels at 180 miles on 12 gallons of gas at this rate how many gallons will it need to travel 420 miles
Could a cell grow large enough to engulf your school answers
What is the sum of the geometric sequence −3, 18, −108, … if there are 7 terms? −719,835 −119,973 119,973 719,835
What should the u.s’s political, economical and social role be in the Middle East