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

If 60% of a number is 18, what is 90% of the number?
If we have 2000 grams we have
What are the products of burning fuel
The Dionysia was a religious festival honoring which Greek god? Dionysus Zeus Athena Teiresias
True or false In terms of religion, the majority of Pakistanis are followers of Hinduism.
Which person is not a Three Musketeer? a. Athos c. Aramis b. Porthos d. D'Artagnan
Which of the following best describes solids? A. Solids are low in density and compressible. B. Solids are high in density and compressible. C. Solids are low i
please help!! if someone know the answer please
Find the volume of the square based pyramid.
Which would be the ending of a term indicating the surgical removal of a body part? a. -ECTOMY c. -ITIS b. -OSIS d. -CISION