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

6/9=c/6 what does c equal?
to estimate the product of 5 and 193 round 193 to the nearest hundred before multiplying
Settlement where religion was taught
Determine the quantity of work done when a crane lifts a 100-N block from 2 m above the ground to 6 m above the ground. A. 100 J B. 200 J C. 400 J D. 600 J
HOw are producers, consumers, and decomposers alike and different
Which of the following are humans considered to be? Herbivores Carnivores Omnivores All of the above
What is .49735 written in scientific notation
Two fair six sided dice are thrown. Find the probability that both dice land on 6
whats the noun in the sentence 'wendy located her housekeeper'
An airplane flies a distance of 650km at an average speed of 300 km/h. How much time did the flight take?