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 of these lines contains imagery that appeals to touch? We've none of us very much chance at a leaf. And, numb with sudden pangs, each arm hangs sl
Please please help me
What is a characteristic of weight <br />I need it please answer it​
Suspicion of Taft's secretary of the interior grew when he tried to make nearly a million acres of __________ available for __________
r(x)=x-3 s(x)= 4x²write the expressions for (s+r)(x) and (s-r(x) and evaluate (s.r)(2)​
I start working at Wendy's today, any advise?
A college-entrance exam is designed so that scores are normally distributed with a mean of 500 and a standard deviation of 100. Using the eight-part symmetry o
1 pt) If a parametric surface given by r1(u,v)=f(u,v)i+g(u,v)j+h(u,v)k and −4≤u≤4,−4≤v≤4, has surface area equal to 1, what is the surface area of the parametri
Why was Fredrick Douglass important?​
which function has the same y-intercept as the function y equals 2/3 x - 3​