Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Max_Combination
- {
- class Program
- {
- static void Main(string[] args)
- {
- int begining = int.Parse(Console.ReadLine());
- int ending = int.Parse(Console.ReadLine());
- int stopNumber = int.Parse(Console.ReadLine());
- int counter = 0;
- for (int i = begining; i <= ending; i++)
- {
- for (int a = begining; a <= ending; a++)
- {
- counter++;
- Console.Write($"<{i}-{a}>");
- if (counter == stopNumber)
- {
- break;
- }
- }
- if (counter == stopNumber)
- {
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement