Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace dwdwdwdwDD
- {
- class Program
- {
- static void Main(string[] args)
- {
- var start = int.Parse(Console.ReadLine());
- var end = int.Parse(Console.ReadLine());
- var stop = int.Parse(Console.ReadLine());
- var count = -1;
- for (int i = start; i <= end; i++)
- {
- for (int r = start; r <= end; r++)
- {
- count++;
- if (stop <= count)
- {
- continue;
- }
- Console.Write($"<{i}-{r}>");
- }
- }
- }
- }
- }
- // Максимален брой комбинации
- // 1
- // 4
- // 5
- // <1-1><1-2><1-3><1-4><2-1>
Advertisement
Add Comment
Please, Sign In to add comment