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

During which phase of mitosis does the nuclear envelope reform? a. prophase b. telophase c. anaphase d. metaphase
irrational equations 64^1/3 how to simplify?
A submarine can descend at a rate of -2.5 meters/second. Suppose that the submarine begins at a depth of -25 meters. How long would it take the submarine to
how do cyclones cause destruction in places near sea
The larger of two numbers is 6 less than 9 times smaller. Their sum is 54. Find the numbers. Help Pls.
The gazebo in the park is an octagon. Each side of the gazebo is 4 feet long. What is the perimeter of the gazebo? A. 32 feet B. 36 feet C. 24 feet D. 30 feet
Which country occupied Vietnam during World War II? a. the United States b. Japan c. China d. France
why is antibacterial resistance a problem? please help me.
Why is Rosa Parks considered a hero?
An air track car with a mass of 0.75 kg and a velocity of 8.5 m/s to the right collides elastically with a 0.65kg car moving to the left with a velocity of 7.2m