Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int number = int.Parse(Console.ReadLine());
- for (int i = 0; i < number; i++)
- {
- for (int j = 0; j < number; j++)
- {
- for (int k = 0; k < number; k++)
- {
- char first = (char)('a' + i);
- char second = (char)('a' + j);
- char third = (char)('a' + k);
- Console.WriteLine($"{first}{second}{third}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement