Advertisement
martinvalchev

Magic_Letter

Jan 30th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Magic_Letter
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             char first = char.Parse(Console.ReadLine());
  10.             char second = char.Parse(Console.ReadLine());
  11.             char banned = char.Parse(Console.ReadLine());
  12.  
  13.             for (int i = first; i <= second; i++)
  14.             {
  15.                 for (int j = first; j <= second; j++)
  16.                 {
  17.                     for (int k = first; k <= second; k++)
  18.                     {
  19.                         if (i == banned || j == banned || k == banned) continue;
  20.                         Console.Write($"{(char)i}{(char)j}{(char)k} ");
  21.                     }
  22.                 }
  23.             }
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement