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

which scientist was the first to propose the heliocentric model of the universe
An ionic bond form when atoms
what does it equal to?
Solve. h - 18 1/2 = -7 3/4
President Johnson escalated American involvement in Vietnam by A. declaring war. B. having Ngo Dinh Diem assassinated. C. sending “advisers” to South
What is the point slope form of a line crossing through the points (1, 2) and (5, 10)
15 points--Which equation represents a line that has a slope of 1/3 and passes through point (–2, 1)?
The Outsiders by S.E. Hinton Chapters 9-10: Dally's move to bluff the police with the pistol is a suicidal act. Why do you think Dally chooses to die? Do you t
What main idea do both translations of the verses from Paul's letter to the Corinthians convey? A. Affection between people is supremely important. B
An ionic compound is found to contain 10.9% magnesium, 31.8% chlorine and 57.3% oxygen. What is the empirical formula for this compound?