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 ConsoleApplication30
- {
- class Program
- {
- static void Main(string[] args)
- {int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int c = 0;
- for (int i1 = a; i1 <= b; i1++)
- {
- for (int i2 = a; i2 <= b; i2++)
- {
- for (int i3 = a; i3 <= b; i3++)
- {
- for (int i4 = a; i4 <= b; i4++)
- {
- for (int i5 = a; i5 <= b; i5++)
- {
- if (a <= i1 && i1 < i2 && i2 < i3 && i3 < i4 && i4 < i5 && i5 <= b)
- {
- Console.WriteLine("{0} {1} {2} {3} {4}", i1, i2, i3, i4, i5);
- c++;
- }
- }
- }
- }
- }
- }
- if (c == 0)
- {
- Console.WriteLine("No");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement