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

Charles can do a job in 1 hour, Bill can do the same job in 2 hours, and Bob can do the job in 3 hours. How long does it take them to do the job working togethe
What is the advantage of a gold leaf electroscope ?
Which one is greater 0.64 or 7over 10
A cart travels down a ramp at an average speed of 5.00 centimeters/second. What is the speed of the cart in miles/hour?
Charles can do a job in 1 hour, Bill can do the same job in 2 hours, and Bob can do the job in 3 hours. How long does it take them to do the job working togethe
Tim can mow 4 lawns in 6 hours. How many lawns can be mow in 15 hours?
graph the function y=1/2sin(x-pi/4)
On Tuesday, Donovan earned $9 for 2 hours of babysitting. On Saturday, he babysat for the same family and earned $31.50. How many hours did he babysit on Saturd
How would japans physical geography affect the development of Japanese government And society
The ribs and sternum are connected by a. immovable joints. b. partly moveable joints. c. movable joints. d. none of the above