title: Nested for loop c#
body: <p>I have a school project and I need to complete it but its not working. I have to do a nested for loop in c# , I have managed to do the earlier projects which had the result :<br>
  1 2 3 6 </p>
  
  <p>1 2 3 6 </p>
  
  <p>1 2 3 6 </p>
  
  <p>1 2 3 6 </p>
  
  <pre><code> static void Main(string[] args)
      {
         for (int row = 0; row &lt; 4; row++)
          {
              int x = 1;
              int y = 0;
              for (int column = 0; column &lt; 3; column++)
              {             
                  Console.Write(x);
                  y = y + x;
                  x = x + 1;   
              }   
              Console.Write(y);
              Console.WriteLine(); 
          }
          Console.ReadLine();
      }
  </code></pre>
  
  <p>but now i stuck with the second project which must give an output :</p>
  
  <p>1 2 3 6<br>
  2 3 4 9<br>
  3 4 5 12<br>
  5 6 7 18 </p>
  
  <p>please help anyone !! </p>