skipter

C# Triples of Latin Letters

Jun 11th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace DataTypes___Lab
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.  
  13.             int n = int.Parse(Console.ReadLine());
  14.  
  15.             for (int i = 0; i < n; i++)
  16.             {
  17.                 for (int k = 0; k < n; k++)
  18.                 {
  19.                     for (int l = 0; l < n; l++)
  20.                     {
  21.                         Console.WriteLine("" +
  22.                                                (char)(i + 'a') +
  23.                                                (char)(k + 'a') +
  24.                                                (char)(l + 'a'));
  25.                     }
  26.                 }
  27.             }
  28.         }
  29.     }
  30. }
Add Comment
Please, Sign In to add comment