Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MagicLetter
- {
- class Program
- {
- static void Main(string[] args)
- {
- var A = char.Parse(Console.ReadLine());
- var B = char.Parse(Console.ReadLine());
- var magic = char.Parse(Console.ReadLine());
- for (char c = A; c <= B; c++)
- {
- for (char d = A; d <= B; d++)
- {
- for (char e = A; e <= B; e++)
- {
- if (c != magic && d != magic && e != magic) Console.Write(c+d+e+" ");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement