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 late 1980s savings and loan crisis resulted primarily from
mark the statement that is not true. the executive branch mainly interprets the federal laws and upholds or negates them. the executive department is divided in
A mihrab is an important part of the mosque. What is its function?
Which would best describe the person who drove the get-away car in a hold-up? a. accessory before the fact b. accessory after the fact c. accomplice d. prin
How do most people pay for medical care? A.) individual insurance B.)with employer-provided insurance C.) out of pocket D.) with state insurance
fossil evidence, rocks, and the shape of continents provide support for the theory of
1^2 + 4^2 + 7^2 + ... + (3n - 2)^2 = n(6n^2-3n-1)/2
Which graph correctly solves the system of equations below? y = x2 + 3x + 4 y = x2 + 2x + 1
which religion did china introduce into japan?
the size of a population refers to the