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

when did the holocaust end
Why are taxes paid to local, state, and national governments in the United States?
The Minoans inhabited the island of _____. Australia Crete Barbados Solomon
if y=14 when x=8, find y when x=12
A single tree produces about 2.6 × 102 lb of oxygen each year. The Amazon rainforest has about 3.9 × 1011 trees. About how many pounds of oxygen are produced in
What are the cost of "Freebie" items?
what twice daily event would cause water levels around jamestown to rise and cause wells and fresh water streams to become brackish
Sharon is 54 inches tall. tree in her backyard is five times as tall as she is. the floor of her treehouse is at a height that is twice as tall as she is. What
what is 5.5 as an improper fraction?
What is the greatest whole number that rounds to 67,400? What is the least whole number?