Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace FootbalChange
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- int counter = 0;
- for (char i = 'B'; i <= 'L'; i++)
- {
- for (char k = 'f'; k >= 'a'; k--)
- {
- for (char n = 'A'; n <= 'C'; n++)
- {
- for (int m = 1; m <= 10; m++)
- {
- for (int l = 10; l >= 1; l--)
- {
- counter++;
- if (counter == num && i % 2 ==0)
- {
- Console.WriteLine($"Ticket combination: {i}{k}{n}{m}{l}");
- Console.WriteLine($"Prise: {i+k+n+m+l} lv.");
- break;
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment