Teo_Yanchev

TriplesOfLatinLetters - C# - Fundamentals

Aug 19th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _06.TriplesOfLatinLetters
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int n = int.Parse(Console.ReadLine());
  10.  
  11. for (int i = 97; i < 97 + n ; i++)
  12. {
  13. for (int j = 97; j < 97 + n; j++)
  14. {
  15. for (int k = 97; k < 97 + n; k++)
  16. {
  17. char chrI = (char)(i);
  18. char chrJ = (char)(j);
  19. char chrK = (char)(k);
  20.  
  21. Console.WriteLine($"{chrI}{chrJ}{chrK}");
  22. }
  23. }
  24. }
  25. }
  26. }
  27. }
  28.  
Add Comment
Please, Sign In to add comment