3 comments:

  1. n=int(raw_input("enter number"))
    i=0
    while (n>0):
    n=n/10
    i=i+1
    print i
    enter number123
    3

    ReplyDelete
  2. number=int(raw_input("enter number"))
    i=0
    while (n>0):
    n=n/10
    i=i+1
    print i

    ReplyDelete
  3. n=int(input("Enter any number"))
    x=0
    while(n > 0):
    n=n / 10
    x=x + 1

    print("\n number of digits in a given number = %d" %x)

    ReplyDelete