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

need help please and thanks​
Which chemical equation represents a precipitation reaction?
Given the following sequence {a^k} beginning with a0=4 4,11,18,25,32,39 What is the value of a4?
12x + 3y = 15 for x = -1,0,1
What fraction of an hour is 2 minutes
[tex]8 {?}^{2} [/tex]​
How did ancient civilization influenced us today
The formula for force is f = m⋅a, where f is force, m is mass, and a is acceleration. If a force of 30 Newtons acts upon a 6 kg object, calculate the accelerati
Franklin Construction Company build a sidewalk around two sides of a new library, as shown in the figure. what is the area of the sidewalk.​please help
Brian went shopping and spent $47 on jewelry. If he spent $67 total, what percentage did he spend on jewelry? Round your answer to the nearest percent.