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

the length of a rectangle is 3 feet less than twice the width of the rectangle. if the perimeter of the rectangle is 324 feet, find the width and the length?
List the perfect squares between 100 and 500 that are even numbers.
What is the 54th element on the periodic table?
What is the 54th element on the periodic table?
y varies directly as x. if x=5 when y=12 find x when y=30
HOW TO FIND THE MISSING NUMERATOR IN ANY FRACTIONS LIKE 4/8=  ?/4
If item costs $99.99 with 15% off and I get final price. It then asks me what percentage of savings. How do I get the percentage of savings
Why did populations soar between 1800 and 1900?
y varies directly as x. if x=5 when y=12 find x when y=30
There is a turtle race. The race will last 2 minutes. I have to find the distance from the start each turtle will be at the end of the race. Speed (in inches pe