Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace FiveDifferentNumbers
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int m = int.Parse(Console.ReadLine());
- int number = 0;
- int counter = 0;
- for (int row = n; row < m; row++)
- {
- for (number = n; number < m; number++)
- {
- if (number == m - 1 && counter >= 5)
- {
- Console.Write($"{number + 1} ");
- }
- else
- {
- Console.Write($"{number} ");
- }
- counter++;
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement