close
// 題目:九九乘法表
string strPrint = "";
for (int ii = 1; ii <= 9; ii++)
{
for (int jj = 1; jj <= 9; jj++)
{
strPrint += jj.ToString("00") + "*" + ii.ToString("00") + "=" + (ii * jj).ToString("00") + " ";
}
strPrint += "<br />";
}
Response.Write(strPrint.ToString());
出處:http://goodlucky.pixnet.net/blog/post/47751825-%5bc%23%5d-%E4%B9%9D%E4%B9%9D%E4%B9%98%E6%B3%95%E8%A1%A8
文章標籤
全站熱搜
留言列表