Advertisement
Guest User

Untitled

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