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

A rectangle whose perimeter is 80 m has an area of 384 m^2. Find the dimensions of the rectangle.
Explain why shorelines are always changing
which fraction shows 32/48 in simplest form
how do i change a trapezoid into a rectangle
what is 1/2 plus 9/10
The square of a certain negative number is equal to 5 more than one half of the number what is the number
Your uncle is planting an 8-foot tall tree. He ties support wires to the tree, 1 foot from the top, and ties them to posts on the ground, 4 feet from the trunk
How to convert 0.39 into a fraction?
What is a federal scout
Which geographic factor was most significant in helping the soviet union withstand german attacks in world war 2