Advertisement
bacco

Magic Letter

May 16th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.97 KB | None | 0 0
  1. using System;
  2.  
  3. namespace cup
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             char first = char.Parse(Console.ReadLine());
  10.             char last  = char.Parse(Console.ReadLine());
  11.             char magic = char.Parse(Console.ReadLine());
  12.  
  13.             for (char one = first; one <= last ; one++)
  14.             {
  15.                 for (char two = first; two <= last ; two++)
  16.                 {
  17.                     for (char three = first; three <= last ; three++)
  18.                     {
  19.                         if ( one   == magic ||
  20.                              two   == magic ||
  21.                              three == magic  )
  22.                         {
  23.                            
  24.                         }
  25.                         else
  26.                         {
  27.                             Console.Write($"{one}{two}{three} ");
  28.                         }
  29.                     }
  30.                 }
  31.             }
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement