int num = 12355, count = 0;
while(num > 0)
{
int temp = num % 10;
if(temp < 5)
{
count++;
}
num /= 10;
}
Console.WriteLine(count);
int num = 12355, count = 0;
while(num > 0)
{
int temp = num % 10;
if(temp < 5)
{
count++;
}
num /= 10;
}
Console.WriteLine(count);