// 題目:印出由1到200,所有能被13所整除的整數。
        string strPrint = "";
        for (int ii = 1; ii <= 200; ii++)
        {
            if(ii % 13 ==0){
                strPrint += (string.IsNullOrEmpty(strPrint) ? "" : "  ") + ii.ToString();
            }
        }
        Response.Write(strPrint.ToString());

 

文章出處: http://goodlucky.pixnet.net/blog/post/746243402


arrow
arrow

    Roger 發表在 痞客邦 留言(0) 人氣()