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

factor the trinomial below x^2+15x+56 a. (x+4)(x+14) b. (x-7)(x-8) c. (x+7)(x+8) d. (x-4)(x-14)
helphelphelphelphelp
Hey Can somone please help meeee
-3x+5=20 show work please!
write the following phrase as an algebraic expression.A number divided by 14​
Before Christianity was legal, those who practiced the Christian religion had to do so privately because they were not respected by those of other beliefs. true
A convex octagon has interior angles with measures (x + 55). (3x + 20), 4x°. (4x - 10). (6x - 55) (3x + 52). 3.xº, and (2x + 30). Find the value of x.
“People get discouraged from doing things they want to do because they feel they have no talent” What kind of sentence is this? A) Complex B)Compound C)Compou
Help me with this please, i reeally need it
Which list correctly orders A, B, and C from least to greatest when A=-8, B = |-61, and C = 11|? d A, B, C C, A, B BA, C C, B,A