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

In the following table, y is a function of x. True or false: The table below represents a function.
Who wrote the letter that criticized President McKinley, calling him "weak and stupid"? O Enrique Dupuy DeLome O Valeriano Weyler Emilio Aguinaldo O Jose Marti​
Read this entry from a blog about service dogs. Lexie, an eight-month-old black Labrador retriever, is sleeping quietly at my feet. I can’t help but think that
3. Circle the smallest number. -2.5 and 1.5 Plss answers
Please answer I will give brainliest!!!!!❤️❤️❤️
if u had to go anywhere where would u go
Which are signs that a relationship lacks healthy boundaries that could indicate a risk for sex trafficking? Check all that apply. One person controls when thei
A major difference between the North and the South was a)The South was needed slaves for the cotton fields and the North needed slaves for their factories. b)Th
"He clenches his fist like a twisting snake." What does this simile mean?
30 points please help!