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

Round 42.3792814474 to the nearest whole number.
Why do leaves change color in fall? What is the dependent variable?
6. Fran shoots an arrow straight up. At the top of the arrow's path A. Velocity and acceleration are both zero. B. Velocity is zero and acceleration is not zero
Two thirds of a number is 16 what is the number?
What is the equation of the line perpendicular to the line with zero slope passing through point (5,7)?
Why was protecting economic freedom important to the founders
What BEST defines an intensive property of a substance? A. a property that is observable B. a property that is measurable C. a physical property that depends o
2x + 5 3x + 1 •————•————• A M B _ FIND THE LENGTH OF AM
The length of a rectangle is twice the width. If the perimeter is 96 cm, find the length of the rectangle.
The sum of 12.6, 31, and 5.4 is greater then 20