title: creating columns and rows; asking for the number of lines the user wants to output then the display
body: <pre><code>//libraries
  #include &lt;iostream&gt;
  
  //global constants
  
  //no functioning prototypes
  using namespace std;
  
  int main(){
      //Define variables
      int n; // Number of rows
      int i; // Row count in for loop
      int k; // Output for loop
  
      // Have user input n
      cout &lt;&lt; "Enter number of rows: ";
      cin &gt;&gt; n;
  
      // Complete for loop
      for (i = 1; i &lt;= n + 1; i++){
      for (k = 1; k &lt; i; k++){
      cout &lt;&lt; k%10;
  }
    cout &lt;&lt; endl;
  }
  
      system("PAUSE");
      return EXIT_SUCCESS;
  }
  </code></pre>
  
  <p>I'm trying to create a code that is similar to this except instead of out putting</p>
  
  <pre><code>1
  12
  123
  1234
  12345
  </code></pre>
  
  <p>I need it to look like</p>
  
  <pre><code>1
   2
    3
     4
      5
  </code></pre>
  
  <p>where the ending number is the number of columns is the number entered and spaces instead of the numbers previous</p>