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

 更新时间:2021年9月22日 10:18  点击:1993
复制代码 代码如下:

int max = (int)Math.Sqrt(150) + 1;
for (int i = 1; i <= max; i++)
{
int j = i * i;
Response.Write(i + " × " + i + " = " + j + "<br />");
}

结果:

[!--infotagslink--]

相关文章