using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Console.Write("Введите a="); int a = Convert.ToInt32(Console.ReadLine()); Console.Write("Введите b="); int b= Convert.ToInt32(Console.ReadLine()); Console.Write("Введите c="); int c = Convert.ToInt32(Console.ReadLine()); for (int i = a; i <= b; i++) { int n = i; while (n != 0) { if (n % 10 == c) { Console.WriteLine(i); break; } n /= 10; } } } } }