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 caribbean countries have refugees come?
the Crimean war was the result of a struggle between ... and the ... ?
the scale of a map is 1 cm: 15 km. what is the actual distance corresponding to each map distance
a baseball team has won 15 games and lost 12 games. Based on the results, which is the best prediction for the number of wins the team will have if they play162
A single carbon atom can form a maximum of how many single covalent bonds
I an confused need help on number 6
Name from least to greatest 12 liters, 9 quarts, 3 gallons.
Which sentence is a run-on sentence? A. Most humans eat around 3 to 5 pounds of food every day. B. A blue whale eats up to 6,000 pounds of food per day, which i
What were the outcomes of European Exploration?
Which statement describes the relationship between chromosomes, genes, and alleles? A. Alleles transfer genes to the appropriate location within a chromosome. B