asp.net显示相同数字相乘的结果,直到数值大于150为止
2026-01-17 16:32:40 作者:用户投稿
复制代码 代码如下:
int max = (int)Math.Sqrt(150) + 1;
for (int i = 1; i <= max; i++)
{
int j = i * i;
Response.Write(i + " × " + i + " = " + j + "<br />");
}
结果:
int max = (int)Math.Sqrt(150) + 1;
for (int i = 1; i <= max; i++)
{
int j = i * i;
Response.Write(i + " × " + i + " = " + j + "<br />");
}
结果:
联络方式:
4008905355
邮箱:9196886@qq.com
Q Q:9196886
微信二维码
