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

from the graph,determine the value of x when y= 0
which one of the following electronic configuration represents the element that forms simple ion with a charge of-3? (a)1s^2,2s^2,2p^6,3s^2,3p^1 (b)1s^2,2s^2,2p
How many molecules are in 12.5g of water (H2O)? Molar mass Help asap
area of parallelogramis 30 cm^2. if the length of two adjacent sides are 6 cm and 10 cm respectively. find its diagonal​
Solve the inequality V/3+12>7
Use the Binomial Theorem to expand (3 + 2x)4.
i need help with this please ​
what are some reasons for Norway to join the EU. I will be marking brainliest!!!
Find the median, mean and mode of : 0,2,2,4,4,6,6,6,6 pls show working
I am unpredictable as I change myself in a short time span.