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

Select the simplified expression for 8(x - 4) - 4(x - 3) + 7x. 11x + 4411x - 711x - 4411x - 20
John Sells Hamburgers For $3 Each and cheeseburgers for $3.50 each. One afternoon, he sells a total of 24 burgers for $79. How Many hamburgers did he sell?
If y=2 when x=3. What is the value of y when x=9?
How many union ships did the Virginia sink?
In the top row of an chessboard, Tom writes the values 1, 2, 4, 8, 16, 32, 64, 128. In the leftmost column, Tom writes the values 1, 3, 9, 27, 81, 243, 729, 2
If the probability of giving birth to a boy is 0.52, what is the approximate probability of giving birth to 4 consecutive boys?
What are some 5th grade science words that start with y
Why did the goverment ration goods for people to buy?
how can you simplify 24                                ---                                30
Show that 9x^2-17x-85=0 give you solutions to 3 correct significant figures There are two possible answers for x