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

For each of the following 1.Plane Mirror 2.Concave Mirror 3.Convex Mirror 4.Thin Concave Lens 5.Thin Convex Lens Draw the 2 Ray Diagrams for each of the above w
He drove the car carefully. (underline the adverb)
WHAT IS THE AUTHORES POINT USE THE EVIDINCE TO COMPLETE THE CHART MONEY AND SENSE STROY IREADY
PLEASEEEEE HELP MEEEEEEEEE
What is the next number 6,12,15,60,65,?
what were a couple of tribes that were removed from the southeast united states to the lands west of the Mississippi
THE HALF OF 38 HOW MANY IS IT
20 African countries and their CapitalI need quick answers pls ​
Assume you found that the following quotation for a T-Bill in an issue of local newspaper. Maturity Days to Mat Bid Ask Change Ask Yield 11/14/91 170 5.57 5.55
"What is the difference between an exothermic and endothermic reaction? Provide examples of each."