Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace MovieTickets
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a1 = int.Parse(Console.ReadLine());
- int a2 = int.Parse(Console.ReadLine());
- int n = int.Parse(Console.ReadLine());
- for (int i = a1; i < a2; i++)
- {
- for (int x = 1; x < n; x++)
- {
- for (int y = 1; y < n / 2; y++)
- {
- if (i % 2 == 1 && (i + x + y) % 2 == 1)
- {
- Console.WriteLine($"{(char)i}-{x}{y}{i}");
- }
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment