title: NSLog default break line
body: <p>I am very new to Objective-C and I am starting to learn simple things. In this case, I want to create a <code>pyramid</code> using the <code>*</code> symbol. </p>
  
  <p>Problem: Everytime <code>*</code> is printed, it includes a line break. How can I get rid of it to create a pyramid look? I thought I had to add <code>\n</code> to cause a line break in the <code>Break line</code> text I added.</p>
  
  <p>Right now, I have this code to create a pyramid:</p>
  
  <pre><code>    //Pyramid
      int a,b;
      int x=5;
  
      for(a = 1; a &lt;= x; a++){
  
          for(b=1; b&lt;=a; b++){
              NSLog(@"*");
          }
  
          NSLog(@"Break line");
  
      }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>2014-02-23 10:44:35.264 Pyramid[614:303] *
  2014-02-23 10:44:35.266 Pyramid[614:303] Break line
  2014-02-23 10:44:35.267 Pyramid[614:303] *
  2014-02-23 10:44:35.267 Pyramid[614:303] *
  2014-02-23 10:44:35.267 Pyramid[614:303] Break line
  2014-02-23 10:44:35.268 Pyramid[614:303] *
  2014-02-23 10:44:35.268 Pyramid[614:303] *
  2014-02-23 10:44:35.269 Pyramid[614:303] *
  2014-02-23 10:44:35.269 Pyramid[614:303] Break line
  2014-02-23 10:44:35.269 Pyramid[614:303] *
  2014-02-23 10:44:35.270 Pyramid[614:303] *
  2014-02-23 10:44:35.270 Pyramid[614:303] *
  2014-02-23 10:44:35.270 Pyramid[614:303] *
  2014-02-23 10:44:35.271 Pyramid[614:303] Break line
  2014-02-23 10:44:35.271 Pyramid[614:303] *
  2014-02-23 10:44:35.272 Pyramid[614:303] *
  2014-02-23 10:44:35.272 Pyramid[614:303] *
  2014-02-23 10:44:35.272 Pyramid[614:303] *
  2014-02-23 10:44:35.273 Pyramid[614:303] *
  2014-02-23 10:44:35.273 Pyramid[614:303] Break line
  </code></pre>