Guest User

Mastahh

a guest
Jun 1st, 2010
183
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. static void Main(string[] args)
  2.         {
  3.             int size = 10;
  4.             String s1 = "" ,s2 = "";
  5.             for (int i = 1; i <= size; i++)
  6.             {
  7.                 s1 += i;
  8.                 s2 = i + "-" + s2.Trim('-');
  9.                 Console.WriteLine((i % 2 == 0)?s2:s1);
  10.                 s1 += "-";
  11.             }
  12.         }
RAW Paste Data