LachoTodorov

Untitled

May 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.93 KB | None | 0 0
  1. using System;
  2.  
  3. namespace P14
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             var start = Console.ReadLine()[0];
  10.             var end = Console.ReadLine()[0];
  11.             var useless = Console.ReadLine()[0];
  12.  
  13.             for (char i = start; i <= end; i++)
  14.             {
  15.                 if (i != useless)
  16.                 {
  17.                     for (char j = start; j <= end; j++)
  18.                     {
  19.                         if (j != useless)
  20.                         {
  21.                             for (char k = start; k <= end; k++)
  22.                             {
  23.                                 if (k != useless)
  24.                                 {
  25.                                     Console.WriteLine($"{i}{j}{k}");
  26.                                 }
  27.                             }
  28.                         }
  29.                     }
  30.                 }
  31.             }
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment