Advertisement
elena1234

Triples of latin letters

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