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

The American artist who used bold blocks of color, stark light, and lonely, somber settings was A. Edward Hicks. B. Edward Hopper. C. Alfred Bierstadt. D. Ashe
The cost to mail a one ounce letter was 39 cents and the cost to mail a two once letter was 63 cents. What is the ratio of the cost to mail a one ounce letter t
who were the first europeans to master fireworks
What's an example of multiple alleles?
hi can someone translate these to english? only if you know french so please no translator because that wont help me at all. Où va cette famille pendant les va
arrhenius base definition
Which of these pairs of numbers differ by 495 when they are squared? Choices:A.17 and 19 B:21 and 30 C.27 and 18 ,or D.23 and 32
gabo’s constructed head no. 2 investigates the sense of ______ and form implied by flat planes, in contrast to the solid mass of conventional sculpture.
long term effects of alcohol
sales at Cycle Time increased by 370% this year. Which of the following is equivalent to 370%? 37/100, 3.7, 3 7/100 or 37? How do I figure this out?