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 were north american colonies all similar in the 1700s?
The function of the eardrum in the middle ear is to
Why is sodium sulphate hemihydrate called as "Plaster of Paris"?
What is the least common denominator for 5/6 and 3/8. 3/4 and 6/7
in the number 13,407.036 there are two 3's. Explain how the values of the 3's are related.
What are the functions of receptors in our body? Think of a situation where receptors do not work properly. What problems are likely to arise?
How do you?...Multiply out and simplify 10(2x-1)-20x?
What were the major causes of WWII? Please include at least 4 answers.
What are the functions of receptors in our body? Think of a situation where receptors do not work properly. What problems are likely to arise?
what is a high structure part of a church which has 5 letters