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

asked
User IvoTops
by
7.9k points

2 Answers

0 votes

Answer:

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

Explanation:

answered
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)

answered
User Eduardo Crimi
by
8.3k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.