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

The sun ____ in the East.​
A sentence that asks a question ends with a period. True False
d) At the New York Stock Exchange a certain online gaming stock had an initial public offering (IPO) price of 10 USD per share and is traded 24 hours a day. Ske
Quick Math Question for 50 Points! Anybody willing to help? If so, brainliest plus huge thanks! :D Eight less than the product of three and a number is the same
The sun ____ in the East.​
(1) When we call someone “pig” or “swine,” we do not mean it as a compliment. (2) But pigs do not deserve to be used as a symbol for an insult. (3) They are pro
Write an expression to describe the sequence below. Use n to represent the position of a term in the sequence, where n = 1 for the first term.–77, –76, –75, –74
Complete the sentence with a word that means the same as "rare"
The sum of 2.236 and 7.555.. must be : A) Rational B) Irrational C) An integer D) A whole number
Which represents the inverse of the function f(x) 4x? O h(x) = x + 4 O h(x) = x - 4 O h(x) Sx O h(x) = ~x