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

If fx) = 3* + 10x and x) = 4x - 2, find (f+ g)(x).​
HELPPPP ASSAPPPPPP PLZZZ
2. help/ people/ a device/ communicate/ through/ brain waves/ emotions/.
Anyone know how to do this?
what are the five main points of kinetic theory of gas?​
Write the equation of the line in slope-intercept form with a slope of 5/6 and passes through the point (0, -6).
Please help me!Does kepler 452b have magnetic air? or as we called a exomagnet? Do Pluto planet have a ice spikes or some of snow temperature and does pluto hav
NO LINKS OR ANSWERING QUESTIONS YOU DON'T KNOW!!!Chapter 11 part 3:Of the three functions {f(x), g(x), h(x)} featured on the graph below (on the following page)
PLS HELP ME ON THIS QUESTION I WILL MARK YOU AS BRAINLIEST IF YOU KNOW THE ANSWER!!
What is the minimum value of the objective function, C with given constraints? C=5x+6y 2x+y≤83 x+4 y≤17 x≥2 y≥1 A; 10 B; 16 C; 18 D; 19