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

"that killing a slave, or any colored person,... is not treated as a crime, either by the courts or the community" examples:_________
x^2-5x=14 solve for x
let (-3,-2) be a point on the terminal side of 0. find the exact values of cos0 csc0 and tan0
What is the main purpose of historical fiction? A. to inform B. to persuade C. to entertain D. to inspire
Oscar Lewis coined the phrase ________________ to describe the crushing burden faced by the urban poor; it is marked by apathy, cynicism, helplessness, and mist
what were the constitutional crisis of 1954 to 1955
After sales tax your brand new car is $17,300. What is the total price of the car with DMV fees of 1.25% of the purchase price of the car? A. $261.25 B. $17,516
2/3v-6=6-2/3v(if there is no solution,type in ''no solution'')v= Answer
If pressure is kept constant and the temperature of a gas is doubled, what will happen to the volume?
Apply solubility rules of inorganic slats to predict the occurance of precipitation reactions?