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

178 rounded to the nearest hundred
A ballerina wants to improve her leg extension. What type of activity would be the most appropriate to focus on during training to accomplish this goal?
How did Rutherford's experimental evidence lead to the development of a new atomic model?
at the pet fair, Darlene's dog weighed 5 times as much as leah's dog. Together, the dogs weighed 84 pounds. how much did each dog weigh? complete the bar model.
What is 21 divided by 94.5
The length of the Titanic was 182 feet. Porter's history class is building a model of the Titanic. The model is 1/100 of the actual link of the ship. How long i
What is 689 divided by 24
Which of the following is the primary function of certification? a. To enforce mandatory government regulations b. To give credit to a facility that meets certa
How to divide 9 divided 204?
178 rounded to the nearest hundred