title: How to format List items into different row of table for every new value of users
body: <p>I have four lists for four columns of a table. I want to print data as shown in the screenshot of the image below. </p>
  
  <p>However, whenever I run the code below details of first user come according to the screenshot but after I input another user's data and try to print it, it comes in same line like this: </p>
  
  <p><code>Jack Li Tom smith 10 5</code></p>
  
  <p>This is what I have tried:</p>
  
  <pre><code> public void SummaryTable()
          {
  
              Console.WriteLine("\tSummary of Membership Fee");
              Console.WriteLine("{0} {1,10} {2,10} {3,10}","Name", "Weeks","Discount","Charges");
              //Console.Write("Weeks\t");
              //Console.Write("Discount\t");
             // Console.WriteLine("Charge");
              //Console.WriteLine();
  
              foreach (string namesl in nameList)
              {
                  Console.Write("{0}",namesl);
                  //Console.Write("\t");
              }
  
              foreach (int weekl in weekList)
              {
                  Console.Write("{0,10}",weekl);
                  //Console.Write("\t");
              }
  
              foreach (string discountl in discountList)
              {
                  Console.Write("{0,10}", discountl);
                 // Console.Write("\t");
              }
  
              foreach (double chargel in chargeList)
              {
                  Console.WriteLine("{0,10}",chargel);
  
  
  
              }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/YH7s0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YH7s0.png" alt="enter image description here"></a></p>