Advertisement
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 Stupid_Password_Generator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- var spece = " ";
- for (int sym1 = 1; sym1 <= n; sym1++)
- {
- for (int sym2 = 1; sym2 <= n; sym2++)
- {
- for (char sym3 = 'a'; sym3 < 'a' + b; sym3++)
- {
- for (char sym4 = 'a'; sym4 < 'a' + b; sym4++)
- {
- for (int sym5 = Math.Max(sym1, sym2) + 1; sym5 <= n; sym5++)
- {
- Console.Write("{0}{1}{2}{3}{4}", sym1, sym2, sym3, sym4, sym5);
- Console.Write(" ");
- }
- }
- }
- }
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement