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

Solve the pictures please.
Tommy will spend start fraction, 1/5 of his time this weekend studying for his 4 final exams. What fraction of the weekend will he spend studying for each of hi
the pH of carbonated drink is 3.0 what is the hydrogen ion concentration of the drink?
Rewrite log₅(x+3) into an equivalent expression using only natural logs
Is this sentence simple, compound, or complex in its structure? When we left home, the rain was heavy.
Guys help me I need help what is 5/6 divided 1/2
4. 7G4 - M Kylie used wire fencing to form a border around a circular region in her back yard. If the diameter of the circular region was 5 yards, what was the
Rotate the axes to eliminate the xy-term in the equation. Then write the equation in standard form. a. xy + 1 = 0
i was asked to write an essay about my department in french..my department is international studies.. please help me.​
According to Article I of the Constitution, who has the ability to approve foreign treaties? the Cabinet and the President the House and the Senate the Sena