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 _06_PasswordGenerator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num1 = int.Parse(Console.ReadLine());
- int num2 = int.Parse(Console.ReadLine());
- int passCount = int.Parse(Console.ReadLine());
- char A1 = '#';
- char B1 = '@';
- char B2 = '@';
- char A2 = '#';
- int passwords = 0;
- for (int k = 1; k <= num1; k++)
- {
- for (int l = 1; l <= num2; l++)
- {
- if (passwords == passCount)
- {
- break;
- }
- if (A1 > '7' || A2 > '7')
- {
- A1 = '#';
- A2 = '#';
- }
- if (B1 > '`' || B1 > '`')
- {
- B1 = '@';
- B2 = '@';
- }
- Console.Write($"{A1++}{B1++}{k}{l}{B2++}{A2++}|");
- passwords++;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement