Advertisement
Qrist

25

Apr 1st, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Unknown
  4. {
  5.     class Program
  6.     {
  7.  
  8.         static void Main(string[] args)
  9.         {
  10.             int n = int.Parse(Console.ReadLine());
  11.  
  12.             for (char a = 'a'; a < 'a' + n; a++)
  13.             {
  14.                 for (char b = 'a'; b < 'a' + n; b++)
  15.                 {
  16.                     for (char c = 'a'; c < 'a' + n; c++)
  17.                     {
  18.                       Console.WriteLine($"{a}{b}{c}");                        
  19.                     }
  20.                 }
  21.             }
  22.  
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement