title: Getting 1 to N and N to 1
body: <p>I was trying to get a series of sum from 1 to N and N to 1.</p>
  <p>The output should be like this :</p>
  <pre><code>12345 
  54321 
  12345 
  54321 
  12345
  </code></pre>
  <p>I dont know where's my mistake but my code's result is this :</p>
  <pre><code>12345
  54321 
  12345 
  54321 
  12345
  54321 
  12345 
  54321 
  12345
  54321
  </code></pre>
  <p>This is my code :</p>
  <pre><code>        public static void Main (string[] args) {
          Console.WriteLine(&quot;Masukkan Nilai : &quot;);
          int n = Convert.ToInt32(Console.ReadLine());
          for (int x = 1; x &lt;= n; x++) 
          {
            for (int j = 1; j &lt;= n; j++)
            {
                Console.Write(j);
            }
            Console.WriteLine();
            for (int i = n; i &gt;= 1; i--)
            {
                Console.Write(i);
            }
            Console.WriteLine();
          }
          Console.ReadKey();
    }
  </code></pre>