Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace exampreparation
- {
- 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 - 1; i++)
- {
- for (int j = 1; j <= n - 1; j++)
- {
- for (int k = 1; k <= n / 2 - 1; k++)
- {
- if (i % 2 == 1 && (i + j + k) % 2 == 1)
- {
- Console.WriteLine($"{(char)i}-{j}{k}{i}");
- }
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment