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

28-(-x)-|10| evaluate the expression when x= -15
which part of the brain is represented by the highlighted area shown below? cerebrum cerebellum medulla oblongata pons
which of the tables represents a function? table a input output 4 3 3 2 3 1 table b input output 1 3 3 5 5 7 table c input output 0 0 1 4 1 5 table d input outp
21st Century Literature
Which of the following is the last step in creating a budget?
Which sentence is punctuated correctly? A. We used to live at 8725 Palomar Rd Princeton, NJ 08543. B. We used to live at 8725 Palomar Rd, Princeton NJ 08543
The Big Bang Theory is the one best supported by scientific evidence, according to top scientists. True False
the order in which atomic orbitals are filled is based on what factor?
what is the radius of a circle in which a 30° arc is 2 inches long?
Which of the following beliefs did utopian socialists and communists have in common? A. industrialization in american colonies encouraged europeans to control t