mkpetrov

Untitled

Dec 22nd, 2016
183
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. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Char
  8. {
  9.     class Char
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             char l1 = char.Parse(Console.ReadLine());
  14.             char l2 = char.Parse(Console.ReadLine());
  15.             char l3 = char.Parse(Console.ReadLine());
  16.             int Count = 0;
  17.             for (char i = l1; i <= l2; i++)
  18.             {
  19.                 for (char j = l1; j <= l2; j++)
  20.                 {
  21.                     for (char k = l1; k <= l2; k++)
  22.                     {
  23.                         if (i != l3 && j != l3 && k != l3)
  24.                         {
  25.                             Console.Write("{0}{1}{2} ", i, j, k);
  26.                             Count++;
  27.                         }
  28.                     }
  29.                 }
  30.             }
  31.             Console.WriteLine(Count);
  32.         }
  33.     }
  34. }
Add Comment
Please, Sign In to add comment