Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace MagicLetter
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- char one = char.Parse(Console.ReadLine());
- char two = char.Parse(Console.ReadLine());
- char three = char.Parse(Console.ReadLine());
- for (int i = one; i <= two; i++)
- {
- for (int j = one; j <=two; j++)
- {
- for (int k = one; k <= two; k++)
- {
- if ((char)i!=three&&(char)j!=three&&(char)k!=three)
- {
- Console.Write($"{(char)i}{(char)j}{(char)k}");
- Console.Write(' ');
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement