asp.net显示相同数字相乘的结果,直到数值大于150为止

复制代码 代码如下:

  int max = (int)Math.Sqrt(150) + 1;

  for (int i = 1; i <= max; i++)

  {

  int j = i * i;

  Response.Write(i + " × " + i + " = " + j + "<br />");

  }

  结果: