Using System;
public class Test
{
public static void Main()
{
int n = 0;
while (++n <= 10) Console.Write("{0} ",n);<br> Console.WriteLine();
n = 11;
while (--n > 1) Console.Write("{0}-",n);
Console.WriteLine(n);
Console.ReadLine();
}
}
Результат:
1 2 3 4 5 6 7 8 9 10
10-9-8-7-6-5-4-3-2-1