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

Mr. Gardener wants to have the annual interest of $1000.00. If the annual interest rate is 5%, how much money should he invest?
A​ salesperson's ratio of successful signups to the number of people called is 0.925. This​ month, the salesperson had 185 signups. How many people did the sale
What river did twains hometown and the village of st Petersburg both sit on?
What does the statue of liberty symbolize?
What was the significance of woodstock in 1969??
Which compounds are the reactants
Explain why a linear function may not be adequate for describing the supply and demand functions.
On the Transitions tab, in the _______ group, you can set slides to automatically advance after a set number of seconds. A. Transition to This Slide B. Preview
Find the mass of a football player who weighs 1250 n.
A​ salesperson's ratio of successful signups to the number of people called is 0.925. This​ month, the salesperson had 185 signups. How many people did the sale