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

three real zeros 00 . as x-00, f(x) . as x 700, f(x) - oo 6) Solve and check for extraneous solutions. <3 Graph
telling time in intervals​
Is this Low or High comedy And what type of humor??
Jason tossed a fair coin 3 times. What is the probability of getting a head and two tails in any order 1.3/8 2.4/8 3.5/8 4.6/8 pls help its for a test
Can someone help me? Step by step, no links. Will give brainliest to the right answer
Most enslaved people ended up in southern colonies to work on large a Farms b. Factories C. Ship
Flora has a rectangular gift box that has a volume of 24 cubic inches. The box is 2 inches tall. Determine if the gift box could have the given length and width
A car (m=1200kg) accelerates at 3m/s/s for d=10m. How much work has the engine done? * A) 5400J B) 36000J C) 352800J show your work please
Question is in the image
Help me help Help me help Help me help Help me help Help me help Help me help