121k views
2 votes
Write an example of a Counter Variable
in python code

User IvoTops
by
7.9k points

2 Answers

0 votes

Answer:

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

Explanation:

User Scribblemaniac
by
8.8k points
2 votes

Answer:

count += 1

OR

count = count + 1

Explanation:

count = 0

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

while number > 0:

number = number // 10

count +=1

print("Total number of digits", count)

User Eduardo Crimi
by
8.3k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.