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

When is osmosis used by cells to move water across a selectively permeable membrane? A. Osmosis is used by cells when large molecules pass freely across the sel
I NEED HELP WITH THIS PLEASE
Should abortion be legal?Explain your position
a parallelogram has an area of 288 ft squared. If the base of the parallelogram is 24 ft, what is the height of the parallelogram​
Please help!! I'm not sure which one it is
London baked 4 batches of 48 cookies. She packed 12 bags with an equal amount of cookies. How many cookies are in each bag?
Examine the aloe triangles below HELP PLZZ
A mutation happens in the ______.​
what hardships did Africans slaves endure on the middle passage ​
help hard hard math:( 1+1=????