Advertisement
dragonbs

Triples Of Latin Letters

Feb 2nd, 2023
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. int number = int.Parse(Console.ReadLine());
  2.  
  3. for (int i = 0; i < number; i++)
  4. {
  5.     for (int j = 0; j < number; j++)
  6.     {
  7.         for (int k = 0; k < number; k++)
  8.         {
  9.             char first = (char)('a' + i);
  10.             char second = (char)('a' + j);
  11.             char third = (char)('a' + k);
  12.             Console.WriteLine($"{first}{second}{third}");
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement