Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace BankNumberGenerator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int p1 = int.Parse(Console.ReadLine());
- char p2 = char.Parse(Console.ReadLine());
- char p3 = char.Parse(Console.ReadLine());
- char p4 = char.Parse(Console.ReadLine());
- int p5 = int.Parse(Console.ReadLine());
- int max = int.Parse(Console.ReadLine());
- int counter = 0;
- for (int i = p1; i <= 99; i++)
- {
- for (int j = p2; j <= 'Z'; j++)
- {
- for (int k = p3; k <= 'z'; k++)
- {
- for (int l = p4; l <= 'Z'; l++)
- {
- for (int m = p5; m <= 10; m++)
- {
- if (i % 10 == 2 && m % 10 == 5)
- {
- counter++;
- Console.WriteLine($"{i}{j}{k}{l}{m}");
- if (counter == max)
- {
- return;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement