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

A theme is a piece of wisdom about a topic you have explored many themes in The Hobbit state two themes from the novel and give two specific examples from the t
david was training for a 5k running race. Each day of the week he run 65 minutes. how many minutes does he run in 4 weeks
Your state charges 5% sales tax on nonfood items. You're buying a light bulb for $3.00, cereal for $2.50, and an orange for $.50. What will be the grand total o
In which season did major league baseball add its last two expansion teams?
What was one difference between the encomedia system and repartimiento system of Spanish colonial America
A bus travels 36 miles in 45 minutes. enter the total numbet of miles the bus travels in 60 minuted at this rate.
which of these is equialent to 4 to the power of 3
Who was usually responsible for making sure field work was completed by enslaved workers on plantations
who was involved in the Tang Dynasty?
The old stove was heated to ___________ before the corn cakes were placed inside. Which answer provides the most specific detail for the senten