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 store offered a 20% discount on a $32.50 watch how much is the savings and how much is the sale price
How many solutions are there to the equation below? 5x + 48 + 7x = 12(x + 4)
What are the supplementary angels?
explain how to use mental math to find 620-278?
According to a recent report, about 45% of 20- and 21-year-olds are enrolled in school. how many enrolled students is it reasonably likely to get in a sample of
Jason has applied to be a camp counselor for the summer. The job pays $9 per hour. The equation to represent Jason’s job is y = 9x, where x is the number of hou
What is the difference between myocardial infarction (MI) and cardiac arrest?
It's 10 3/5 miles from Alston to Barton and 12 1/2 miles from Barton to Chester. the distance from Alston to Durbin, via Barton and Chester, is 35 miles. how fa
i need helpwith finding the answer its for geometry number25
Alexander hamilton urged congress to pass a protective tariff to encourage the growth of