Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void func(int c, int n)
- {
- if (c > n)
- return;
- for (int i = c; i > 0; i--)
- Console.Write(i + " ");
- Console.WriteLine();
- func(c + 1, n);
- }
- static void Main(string[] args)
- {
- Console.Write("Введите 1 значение: ");
- int a = Convert.ToInt32(Console.ReadLine());
- Console.Write("Введите последнее значение: ");
- int b = Convert.ToInt32(Console.ReadLine());
- func(a, b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement