Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _2._6.Triples_of_Latin_Letters
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- for (int i = 0; i < num; i++)
- {
- char first = (char)('a' + i);
- for (int j = 0; j < num; j++)
- {
- char second = (char)('a' + j);
- for (int k = 0; k < num; k++)
- {
- char third = (char)('a' + k);
- Console.WriteLine($"{first}{second}{third}");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment