title: i need multiplication tables output? what is the wrong?
body: <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  
  namespace MvcApplication5.Controllers
  {
      public class HomeController : Controller
      {
          //
          // GET: /Home/
  
          public ActionResult Index()
          {
              int row;
              int col;
  
            for (row = 1; row &lt;= 2; row++)
             {
                 for (col = 1; col &lt;= 2; col++)
                 {
                     Console.Write(" the answer is " + row * col);         
  
                 }
             }
  
            int answer = row * col;
            return View(answer);
  
          }
      }
  }
  </code></pre>
  
  <p>I want my answers to be in multiplication table. 1*1=1, 1*2=2, 2*1=2, 2*2=4 it was i want. but the above coding gives me 9 as answer. how come? what i am doing wrong here?</p>