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

Aqueous solutions of this ion give a reddish precipitate when excess hydroxide ion is added. (A) Cu^{2+} (B) CO₃^{2−} (C) Fe^{3+} (D) Al^{3+} (E) Pb^{2+}
Translucent definition: __________ is allowed to pass through translucent objects.
How would I find the slope intercept form of x+y+3=0?
What is the complete predicate of the following sentence?sharon and Jason went for a walk then a bike ride
if log28 = log4 +logx what is the value of x
solove. draw and lable a tape diagram to subtract tens. write the new number sentence.a. 23 - 9 = 24 - 10 =
Rick has a collection of 6 video games. He let's his best friend borrow 2/6 of his video game collection. Write two fracations a equivalent to this numbet. Expl
food couldn't reach the stomach without the esophagus and the what
3x-150=1778. Help me please I need help bad
Which of the following was not one of the four bodily humours? a) choler b) blood c) cholesterol d) black bile e) phlegm