Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _14._Magic_Letter
- {
- class Program
- {
- static void Main(string[] args)
- {
- char first = char.Parse(Console.ReadLine());
- char second = char.Parse(Console.ReadLine());
- char third = char.Parse(Console.ReadLine());
- for (char i = first; i <= second; i++)
- {
- for (char k = first; k <= second; k++)
- {
- for (char m = first; m <= second; m++)
- {
- if (i != third && k != third && m != third)
- {
- Console.Write($"{i}{k}{m} ");
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment