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

what is the capital city of nepal nepal nepal nepal nepal nepal
LE Majid rents a bicycle to ride around the city. There is AED 80 deposit plus AED 22 per hour charge. If Majid pays AED 146, Majid can ride the bicycle for hou
Taking all of these examples together, the reader can assume that van Gogh appeals more to working men because he didn’t pretend he was better than them. What t
If point (2, 3) is rotated 270 degrees, what will be the new coordinate point?
how to proper care and maintenance of orchard trees and fruit trees includes plssss answerrrr​
Overtime, plants will compete, and recreate the forest. This principle is known as... ?????
All of the following are true of the Treaty of Versaille, EXCEPT: a Reduced the German army b Allowed Germany to keep their colonies c Demanded Germany accep
How many solutions ?
Another Organ System that depends on mine
How did the space race between us and Soviet Union impact us society