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

What are dimensions of a rectangular prism with a volume of 576?Not including 6x8x12
2. Which diagram shows a point P an equal distance from points A, B, and C?H
What does the White Stag give to anyone who catches him? A. riches B. happiness C. wishes D. eternal life
When you consider the poem, “Those Winter Sundays” as a whole, the theme that emerges is: Question 6 options: a) resentment b) pity c) understanding d)
Identify the sentence with correct parallel construction from the choices below. A. The production manager was asked to write his report quickly, accurat
Mike drank more than half the juice in his glass. what fraction of the juice could Mike have drunk?
First, read the pair of sentences and notice how they were combined. Then, indicate if the new sentence includes a compound subject, compound verb, or compound
Round 7 3/7 to the nearest whole number.
Solve. 1/4 * 5/4 divided by 10/3
What does bounjour mean?