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

Last year, Ted's salary was $42,000. He donated 1/25 of last year's salary to charity. How much did Ted earn last year after his donation?​
Escribe en lenguaje simbólico las siguientes expresiones, teniendo en cuenta que llamamos x a la edad de María. La edad que tenía María hace 3 años. El doble de
Find the area of the shaded region of the trapezoid. M 찌 18 9 A. 12 sq. units B. 48 sq. units C. 60 sq. units D. 36 sq. units
pls help...............................................
How many kg are there in 400oz?
What key power did the British Parliament hold by 1600? the power to tax the power to choose a king the power to try those accused of crimes the power to declar
What process always accompanies cellular differentiation in a developing embryo?
give an example of how random sampling process is used in a real-world situation
Why do scientists feel it is important to study Kennewick man?
I don’t get it. Can someone explain this to me?