Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.Remoting.Channels;
- namespace ConsoleApplication
- {
- internal class Program
- {
- public static void Main(string[] args)
- {
- char first = char.Parse(Console.ReadLine());
- char second = char.Parse(Console.ReadLine());
- char third = char.Parse(Console.ReadLine());
- int cpunter = 0;
- string print = "";
- for (var x = first; x <= (int) second; x++)
- {
- for (var y = first; y <= (int) second; y++)
- {
- for (var z = first; z <= (int) second; z++)
- {
- print = x.ToString() + y + z;
- if (print.Contains(third) == false)
- {
- cpunter++;
- Console.Write(print+" ");
- }
- }
- }
- }
- Console.Write("{0}",cpunter);
- }
- }
- }
Add Comment
Please, Sign In to add comment