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

What are depository and non depository financial institutions? How do they differ?​
Write the number 307 as a sum of hundreds tens and ones
Which term is defined as “a legal doctrine that permitted racial segregation in public facilities?”
classify wine and beef stew as homogeneous or heterogeneous.
Increased world competition is one way that farming in the United States changed in the late 1800s. True or False?
Clusters of concentrated development on the perimeter highways of an urban area are called _____.
What did the Dutch name their settlement located on Manhattan Island?
Which of the following statements is true? A. 15 + 0 = 0 B. 15 – 0 = 0 C. 0 ÷ 15 = 0 D. 15 ÷ 0 = 0
Simplify 8(R + 6) - 2R.
There are ________ of muscles that are responsible for chewing movements or mastication. A. Two pairs B. Three pairs C. Four pairs D. Five pairs