using System;
public class Program
{
public static void Main()
int num,num1,d,count=0;
Console.WriteLine("enter number");
num=int.Parse(Console.ReadLine());
num1=num;
while(num!=0)
d=num%10;
count++;
num/=10;
}
Console.WriteLine("number={0} has {1} digits",num1,count);