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

How to find the inverse for f(x) = 2x-6
using the clues in the text you can determine environmental toxicologist studies how chemicals affect the environment A- true B- faulse​
Find the linear equations written in standard form. Select all that apply. A. x+y=-1 B. -3x = y C. x + 4y = 0 D. y = 5x - 2 E. x=3 -0.17 F. 8x - 3y = 20 Plz Hur
When can it be determined that the mean is less than the median? A. When the histogram is symmetric B. When the histogram can be closely ap. Foximated by a norm
does anyone know this i need help​
HELP ME PLZZ I NEED HELP
Read the excerpt from Barrio Boy by Ernesto Galarza. I examined it with great care—the smooth enamel bowl with water in the bottom, the wooden lid with a large
PLS HELP ME ASAP!!!!!!!!! ill give thanks, and five stars
In order to prevent harsh chemicals from coming into contact with crops, organic farmers use _______ fertilizers and pesticides.
UV radiation causes the formation of