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

PLEASE HELP! WILL UPVOTE! Which ordered pair is the solution to the system of equations? {2x−y=−5 {x+3y=22 (7, 19) (4, 9) (8, 21) (1, 7)
S=(1 r) c. find c if s = r 174 and r= 45%
QUESTION 4 Which structure is found in all eukaryotic cells? large central vacuole Golgi apparatus flagella cilia
Add. (-3a^2+4a–6)+(-a^2–9)
According to newton's first law of motion, which force is expected to cause a body to accelerate
Cain was a farmer and Abel was a shepherd. True False
In the diagram of the earths interior, where does the material that forms volcanos come from? Using the same diagram, which part is the densest?
What is the main conflict in the novel The Outsiders?
What are two ways in which density has practical importance
A boy kicks a football with an initial velocity of 20 m/s at an angle of 30 above the horizontal. What is the vertical component of it's velocity at the highest