protected void Page_Load(object sender, EventArgs e)
    {
        
if (!IsPostBack)
        {
            
for (int i = 1; i <= 9; i++)
            {
                
for (int j = 1; j <= i; j++)
                {
                    
int k = i * j;
                    
if (i == j)
                    {
                        Response.Write(
"&nbsp;&nbsp;&nbsp;&nbsp;" + i + " * " + j + " = " + k + "<br/>");
                    }
                    
else
                    {
                        Response.Write(
"&nbsp;&nbsp;&nbsp;&nbsp;" + i + " * " + j + " = " + k);
                    }
                }
            }
        }
    }

相关文章:

  • 2022-02-10
  • 2021-12-23
猜你喜欢
  • 2021-12-07
  • 2021-09-05
  • 2021-12-10
  • 2021-11-17
  • 2021-12-10
  • 2021-12-10
相关资源
相似解决方案