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

10(x-2) = -20 Solve
When the United States entered the war in Europe, where did it attack first? A. Normandy B. Northern Africa C. Germany D. Italy
How would u solve for this
If you go out to eat with 3 friends and your meal was $72.50 there is $6.75% sales tax and you should tip the waiter 15%.How much should each person pay ?
i have no idea how to do this. Could i get some help? Thank you in advance.
What percent of 56 is 14?
How to solve number 13
The deli charges $7.50 for a salad weiging 3 pounds. A salad weighing 4 pounds costs $9. what equation can be used to represent the cost for the salad y for x p
Displacement vectors of 4 km north, 2 km south, 5 km north, and 5 km south combine to a total displacement of
How can I do this using f(x) = x^2 + 8x + 16 and x - 4 Polynomial Division and the Remainder Theorem Create a quadratic polynomial function f(x) and a linear