Skip to main content

the answer is 427608$427608$ for the number with 2$2$ between 100000$100000$ and 999999$999999$.i I create program to count the number with number two bet 100000between $100000$ and 999999$999999$. Here is the code I used

for (int num = 100000; num < 999999; num++) { if (num.ToString().Contains("2")) { numberWithTwo.Add(num); count++; } } Console.WriteLine("Total number that contain number 2 is :"+ count); Console.ReadLine();

for (int num = 100000; num < 999999; num++)
            {
                if (num.ToString().Contains("2"))
                {
                    numberWithTwo.Add(num);
                    count++;
                }
            }
            Console.WriteLine("Total number that contain number 2 is :"+ count);
            Console.ReadLine();

the answer is 427608 for the number with 2 between 100000 and 999999.i create program to count the number with number two bet 100000 and 999999. Here is the code I used

for (int num = 100000; num < 999999; num++) { if (num.ToString().Contains("2")) { numberWithTwo.Add(num); count++; } } Console.WriteLine("Total number that contain number 2 is :"+ count); Console.ReadLine();

the answer is $427608$ for the number with $2$ between $100000$ and $999999$. I create program to count the number with number two between $100000$ and $999999$. Here is the code I used

for (int num = 100000; num < 999999; num++)
            {
                if (num.ToString().Contains("2"))
                {
                    numberWithTwo.Add(num);
                    count++;
                }
            }
            Console.WriteLine("Total number that contain number 2 is :"+ count);
            Console.ReadLine();
Source Link

the answer is 427608 for the number with 2 between 100000 and 999999.i create program to count the number with number two bet 100000 and 999999. Here is the code I used

for (int num = 100000; num < 999999; num++) { if (num.ToString().Contains("2")) { numberWithTwo.Add(num); count++; } } Console.WriteLine("Total number that contain number 2 is :"+ count); Console.ReadLine();