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

A company makes a profit of $1.38 million. This is $2.54 million more than last year. Write and solve an equation to find the profit p (in millions of dollars)
The sum of the measures of angles k and l is 180. The measures of angle k is 137. The measure of angle L is (3x-5)
What occupation did Muhammad have before the first revelation? Politician Military general Trader Religious leader
En una tienda se venden dulces nacionales e importados, a razón de 3:2 Si sabemos que al día se vende 255 dulces nacionales, ¿Cuántos dulces importados se vende
Which choice is not an example of a molecule? O3 H2S Mn KOH
Which type of government gets its power from the will of the people? O a communist government O a democracy a dictatorship a monarchy
HELPPPP If y=4, 3y+6=7(2y-3)
Read the poem. excerpt from "Ode: Intimations of Immortality from Recollections of Early Childhood" by William Wordsworth In this poem, Wordsworth conveys his b
The five components of health-related fitness include
why do you think the jury found some of. the troops not guilty?​