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

Mark if the statement describes an event or belief that led to the Crusades. A. The Byzantine emperor requested help from the pope. B. One of the English kings
What is Hammurabi best known for? A. the first known written code of law B. the Hanging Gardens C. establishing the world's first empire D. introducing a new re
How did the efforts of A. Philip Randolph help further civil rights in the United States? He demanded that minorities be allowed to serve in non-segregated unit
Which words in the sentence make up the adverb phrase? Todd built an impressive model bridge with glue and craft sticks. A. with glue and craft sticks B. Todd b
What is the synonym for discussion
Which personal pronoun correctly completes the sentence? A flock of birds flew over __________. A. we B. his C. they D. them
Which sense organs do reptiles use in finding prey?
How many children did king John have
what is 21% of 30.00
if 3ax+b+c, then x equals?