title: print stars as much as the values in the array
body: <p>I'm trying to make a C++ program start creating an array and takes the values from the user , then print every value + star as much the value is .. Example : the user had entered 5 then the output must be like this 
  5***** 
  Input </p>
  
  <p>1 </p>
  
  <p>2</p>
  
  <p>3</p>
  
  <p>4</p>
  
  <p>5</p>
  
  <p>6</p>
  
  <p>output</p>
  
  <p>1*</p>
  
  <p>2**</p>
  
  <p>3***</p>
  
  <p>4****
  and so on</p>
  
  <p>.. help :(</p>
  
  <pre><code>#include &lt;iostream&gt; 
  using namespace std; 
  void main() 
  {
      int arr[10]; 
      for (int i = 0; i &lt; 10; i++)
      {
          cin &gt;&gt; arr[i]; 
          int x = arr[i]; 
          for (int j = 0; x &lt;= arr[i]; j++)
          {
              cout&lt;&lt; "*";
          }
      }
  }
  </code></pre>
  
  <p>And another help please can you give me some useful link to practice on programming to be professional </p>