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 graph shows a line and two similar triangles. On a coordinate plane, a line goes through (0, 0) and (6, 4). A small triangle has a rise of 2 and run of 3. A
Two consecutive odd numbers total -20 find the smaller
How does energy from the sun impact ocean water?
What is the molality of the solute in a 25. 5 percent by mass aqueous solution of formic acid (hcooh)?
5th grade pls help Cy bought a laptop computer, a printer, and a router. Cy used a $35 coupon to make the purchase. He wrote (1,415.00 + 277.50 + 44.95) - 35 to
Prove: (sin α + cos β)^2 + (cos β + sin α)(cos β − sin α) = 2 cos β(sin α + cos β)
How many goals were scored in the stanley cup finals last year?.
Body Mass Index (BMI) has limitations for those who are extremely muscular. What other population group does BMI produce similar limitations
what was the cause of the latin american revolution?
30 ml of. 150 m cacl2 is added to a 15 ml of. 100 m agno3