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 ancient Mesoamerican civilization were known for large stone monuments? a. the Aztec b. the Olmec c. the Maya d. the Inca
What often occured when trade brought new civilizations into contact with one another?
Which of the following was NOT a strong state by the mid 1400's
Is one side of a rectangular fish tank best represented by a point, line, plane, or ray?
At 10 A.M., the temperature was 71F°. At 3 P.M., the temperature was 86F°. Find the value of the slope and explain what it means.
what is the lmc of two numbers that have no common factors greater then 1
explain how to order a set of real numbers
how much is half of 2.25
Match the civilization with its famous architecture. 1. Egypt water tank and citadels 2. Mesopotamia ziggurats 3. Indus Valley pyramids
sami ordered 132 dresses for her store .what is 132 rounded to the nearest ten?