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 _06.Max.Combination
- {
- class Program
- {
- static void Main(string[] args)
- {
- var begin = int.Parse(Console.ReadLine());
- var end = int.Parse(Console.ReadLine());
- var maxCombination = int.Parse(Console.ReadLine());
- var counter=0;
- //var counter2 = 0;
- for (int a = begin; a <= end; a++)
- {
- for (int b = begin; b <= end; b++)
- {
- if (counter == maxCombination)
- {
- break;
- }
- counter++;
- Console.Write("<{0}-{1}>", a , b);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement