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 many variables should you have in a control experiment?
What led to the diverse populations of New York and New Jersey?
How do you find the length of a circle in geometry?
Which is a solution to the equation y=5x-6
What is the Largest Desert in the World?
Does a scalene always have to have unequal sides?
factoring-16w²+50wz-21z²  please help me solve
Q: What is the indicated term of the arithmetic sequence? someone help!!!! a14 for 200,196,192... A: a. 148 b. 252 c. 144 d. 239
What are the essential 4 parts for a civilization to develop? Explain how rivers were the source of civilization?
Which word correctly completes the sentence? The white-tailed __________ fawn followed closely by her side.  A.deer's  B.deers  C.deers'