Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _14._Password_Generator
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int number = int.Parse(Console.ReadLine());
- int simbol = int.Parse(Console.ReadLine());
- int simbolPlace = 97 + simbol;
- for (int firstNumber = 1; firstNumber <= number; firstNumber++)
- {
- for (int secondNumber = 1; secondNumber <= number; secondNumber++)
- {
- for (int firstSimbol = 97; firstSimbol < simbolPlace; firstSimbol++)
- {
- for (int secondSimbol = 97; secondSimbol < simbolPlace; secondSimbol++)
- {
- for (int thirdNumber = 1; thirdNumber <= number; thirdNumber++)
- {
- if (thirdNumber > firstNumber && thirdNumber > secondNumber)
- {
- Console.Write("{0}{1}{2}{3}{4} ", (firstNumber), (secondNumber), ((char)firstSimbol), ((char)secondSimbol), (thirdNumber));
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement