billywillr123 billywillr123
  • 02-04-2021
  • Mathematics
contestada

Write an example of a Counter Variable
in python code

Respuesta :

amandaleemendelson
amandaleemendelson amandaleemendelson
  • 02-04-2021

Answer:

printf(“%d”, i++);

Step-by-step explanation:

Answer Link
23abdour
23abdour 23abdour
  • 02-04-2021

Answer:

count += 1

OR

count = count + 1

Step-by-step explanation:

count = 0

numbers = int(input("Enter a number: "))

while number > 0:

    number = number // 10

    count +=1

print("Total number of digits", count)

Answer Link

Otras preguntas

Word problems with rational numbers
Which city did Muhammad return to and declare the holiest city in Islam?
2x + 7 = x + 3 what is X ?
Currently, Earth's tilt is closest to _____. A. 0° B. 14.5° C. 23.5° D. none of these because, Earth's tilt changes dramatically with each orbit
If water and oil are combined in a container, the resulting liquid is a(n) A. suspension. B. emulsion. C. mixture. D. solution.
"All integers are rational numbers" True or False
What is 4r^-3 times 2r^2
Increased world competition is one way that farming in the United States changed in the late 1800s. True or False?
Where did the Black Death originate? A. western Europe B. the Americas C. Africa D. Southwest China
Which pure substance can be classified as an element? -H2 -NO3 -NaCl -H2SO4