Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class MagicLetter
- {
- static void Main()
- {
- char first = char.Parse(Console.ReadLine().ToLower());
- char second = char.Parse(Console.ReadLine().ToLower());
- char third = char.Parse(Console.ReadLine().ToLower());
- for (char p1 = first; p1 <= second; p1++)
- {
- for (char p2 = first; p2 <= second; p2++)
- {
- for (char p3 = first; p3 <= second; p3++)
- {
- if (p1 == third)
- {
- p1++;
- }
- else if (p2 == third)
- {
- p2++;
- }
- else if (p3 == third)
- {
- p3++;
- }
- Console.Write($"{p1}{p2}{p3} ");
- }
- }
- }
- Console.WriteLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement