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

What are the three types of mutations
Sherry is a clinical sociologists who practices marriage and family therapy. she is also a college professor. one of her current students asks her if she can ma
WILL GIVE A BRAINLEST !!!! The graph of a logarithmic function is shown below. What is the domain of the function? x < 0 x > 0 x < 1 all real numbers
WILL GIVE A BRAINLEST What is the value of [3.6] 3 3.5 3.6 4
A process in which a cell surrounds and removals materials from out of the cell.
Please help. I'll mark brainliest!!
Which West African country is known for its vast oil exports? A) Congo B) Kenya C) Nigeria D) South Africa
The area of a rectangle is 300 square centimeters. If the sides of the rectangle are given as 5 centimeters and [tex] \sqrt{x+2600} [/tex] centimeters, then fin
A patient is taking nicotinic acid (niacin) to treat hyperlipidemia. the patient reports a flushing sensation along with gastrointestinal irritation. the nurse
Joella was rollerblading when a cat jumped right in front of her, causing her to trip and fall. when she fell, she partially landed on the front side of her hea