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 company's income before interest expense and income taxes is $350,000 and its interest expense is $100,000. Its times interest earned ratio is:
explain how a tropical climate impacted a culture:
find the equation of the circle whose center and radius are given center (7,3) radius =7
What is the simplified form of y^2+7y+12/y^2-2y-15? Choices:
Drag the tiles to the correct boxes. Not all tiles will be used. Consider the following function: f(x) = -3/4x+9. Place the steps for finding f^-1(x) in the cor
Why Would you rather buy 18 eggs at this price 2/$8.00 or 18 eggs for 97c at buy 2 get 1 free
Which letter of the alphabet is next in the series? JOTYD (A) I (B) J (C) K (D) L
can you help me ? with this problem ty
the solution of the equation 0=4+4(m+1) is​
An element A reacts with water to form a compound B which is used in white washing. On exposure to air compound B forms C. The compound C on heating forms an ox