Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- public class Program
- {
- public static void Main()
- {
- char first =char.Parse(Console.ReadLine());
- char second =char.Parse(Console.ReadLine());
- char third=char.Parse(Console.ReadLine());
- char forth=char.Parse(Console.ReadLine());
- int num=int.Parse(Console.ReadLine());
- int count=0;
- for(int a=0;a<=num;a++)
- {
- for(char i='A';i<=first;i++)
- {
- for(char k='a';k<=second;k++)
- {
- for(char j='a';j<=third;j++)
- {
- for(char f='a';f<=forth;f++)
- {
- Console.WriteLine("{0}{1}{2}{3}{4}",i,k,j,f,a);
- count++;
- }
- }
- }
- }
- }
- Console.WriteLine(count);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment