Здравейте, условието на задачата е:
Write a program that reads from the console a positive integer number n
and prints a “wave” i.e. the numbers from 1
to n
and then the numbers from n - 1
to 1
on a single line separated by space.
Как се съчетава това? Loop в Loop-a ли трябва да се направи?
Благодаря!