Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _06.Letters_Combinations
- {
- class Program
- {
- static void Main()
- {
- int a = char.Parse(Console.ReadLine().ToLower());
- int b = char.Parse(Console.ReadLine().ToLower());
- int c = char.Parse(Console.ReadLine().ToLower());
- int count = 0;
- for (int i = a; i <= b; i++)
- {
- if (i == c)
- {
- //i++;
- continue;
- }
- for (int j = a; j <= b; j++)
- {
- if (j == c)
- {
- //j++;
- continue;
- }
- for (int l = a; l <= b; l++)
- {
- if (l == c)
- {
- //l++;
- continue;
- }
- count++;
- Console.Write("{0}{1}{2} ", (char)(i), (char)(j), (char)(l));
- }
- }
- }
- Console.WriteLine(count);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment