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

If g(x) = 2 − 1, what is g(−2.3)?
Market economies produce goods that __________. A. consumers demand B. the government thinks are best C. were produced in the past D. producers believe are nece
How to change this sentence to a passive voice? the band was shocked by patrick's loud music.
Some psychologists suggest that sleep has evolved in order to allow humans to dream
Perry made a wooden cube with an edge length of 8.5 inches in shop class. He painted half the faces of the cube red and the other half yellow.What is the surfac
What can you learn from Michael Jordan that might help you in your own life?
What is the name of the policy of giving aggressive nations what they wanted in order to avoid war?
you are ordering linoleum for an 18' by 15' kitchen, but when you get to the store the measurements are in square yards, how much should you order
Which word from the paragraph best helps the reader understand the meaning of the underlined word? Every summer we camp by the lake with my aunts, uncles, and c
The transcontinental was completed in what year?