title: Chart using asterisk (loops, arrays)
body: <p>So I have an array which creates random numbers and I want to divide the numbers by 10. So if the number is 45 I want to get 6 'p' under each other and 4 asterisks under each other( lets call this whole thing a column). And then I want this with the next number as well but I want these columns to be next to each other not under. It will be easier to understand if you see the picture.
  This is what i get:<a href="https://gyazo.com/6e4fcf301784e0c385b9ce0d9c938b6a" rel="nofollow noreferrer">https://gyazo.com/6e4fcf301784e0c385b9ce0d9c938b6a</a>
  This is what i want (here there are spaces instead of 'p's: <a href="https://gyazo.com/778027ad74a2a3d2065348def8f431cd" rel="nofollow noreferrer">https://gyazo.com/778027ad74a2a3d2065348def8f431cd</a></p>
  
  <p>This is my code:</p>
  
  <pre><code>    static void Main(string[] args)
      {
          int[] a = RandomFill(10);
          Print(a);
  
          int asd = 0;
  
          for (int i = 0; i &lt;= a.Length-1; i++)
          {
              asd = a[i] / 10;
  
              for (int j = 0; j &lt;= 10 - asd; j++)
              {
                  Console.WriteLine("p");
              }
              for (int k = 0; k &lt; asd; k++)
              {
                  Console.WriteLine("*" + " ");
              }
              Console.WriteLine();
          }
          Console.ReadLine();
  
  
      }
  
      static int[] RandomFill(int Length)
      {
          Random rd = new Random();
  
          int[] array = new int[Length];
          for (int i = 0; i &lt; array.Length; i++)
          {
              array[i] = rd.Next(0, 100);
          }
          return array;
      }
  
      static void Print(int[] a)
      {
          Console.WriteLine();
          foreach( int element in a)
          {
              Console.Write(element + " ");
          }
      }
  </code></pre>