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

Which rational number is negative? A. 2 B. -12/-18 C. +1/+2 D. +3/-12
I NEED HELP PLEASEE A warehouse buys televisions for a cost price of $640 each. The warehouse then sells the televisions for $960 each. Find the profit on each
Help me pls pls pls pls
Select each square number. 10 150 225 32 36 108
help out here plzzzzzzzzzzzzz
(5, 10.5) and (25, 12.5 slope
Need help for all three ASAP thanks
How does the graph of the function g(x) = 3x + 4 differ from the graph of f(x) = 3X? It is moved (a). unit(s) (b)
In your letter, you need to explain how the theory of evolution is supported by evidence. Be sure to include the 4 pieces of evidence for evolution as well as a
What elements of the New Deal do you see in our government today?