Guest User

Mastahh

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