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 do I️ simplify the exponents? X^-4/x^8
What is the mass of a hiker 200 m above the ground if her gpe is 117,600 j?
Describe the sequence of conflicts, and their consequences, that weakened Qing China?
You put $500 in an interest-bearing bank account that pays 2% per year has a fee of two dollars per month. Are you getting ahead?
charlotte has given ron a big bar of chocolate for valentines day! He decides to break the bar into its individual squares to share with their family. The bar
A rocket starts from rest and moves upward from the surface of the earth. for the first 10.0 s of its motion, the vertical acceleration of the rocket is given b
Where in north american have the greatest risk of earthquake damage?
A florist wishes to make bouquets of mixed spring flowers. part of each bouquet is to be tulips at $5 a bunch and part is to be daffodils at $2 a bunch. how man
¿qué papel tienen las mujeres en el mundo docente?
Why did the bronze age civilization need to develop systems of writing?