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

There are 5 birch trees in each row at the nursery. There are 9 rows of birch trees. How many birch trees are in the nursery?​
help help help helphelp​
Find the difference. 8 - 16 =
Which system of equations is graphed below?
Write a program to show the grade obtained by a student after he/she enters their total mark percentage. Program should accept an input from the user and displa
Which of the following re-establishes the industry/DoD exchange of Logistics Support Analysis Record (LSAR) data in a common format? a. GEIA-STD-0007 b. MIL-HD
HURRY!! Which number line represents the solution set for the inequality -x 4? 10 -10 -8 2 10 -10 8
A desktop computer is Bought for $45,000 and sold for $30,000.Find the loss percent​
Find the difference. 2 - 11 =
need help asap no trolls please!!