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

What does president Lincoln identify as the main cause of the civil war?
Where were most African American colleges that were founded before 1900 located ?
In what network topology are devices chained together in a single line?​
What us senator used american's fear of communism to promote his career by making baseless accusations of communist activities in the united states?
Calculate the pressure of O2 (in atm) over a sample of NiO at 25.00°C if ΔG o = 212 kJ/mol for the reaction. For this calculation, use the value R = 8.3144 J
On a long road trip, a family used 12 gallons of gas. At the end of the trip, there were 3 gallons left in the tank. How many gallons of gas were in the tank at
What are some of the fields of science to which evolutionary biology contributes?
What is your purpose when you are writing to inquire?
2x-50=150 Someone please help me out
The base of a solid oblique pyramid is an equilateral triangle with a base edge length of 18 inches.What is the height of the triangular base of the pyramid?