C#之 十二 带表格的九九乘法

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace chengfabiaoge1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            HttpContext.Current.Response.Write("");
            for (int i = 9; i > 0; i--)
            {
                HttpContext.Current.Response.Write("");
                for (int j = 1; j < 10; j++)/*右上角*/
                //for (int j = 9; j > 0; j--)/*左上角*/
                {
                   if (j >= i)
                    
                    {
                        HttpContext.Current.Response.Write("");

                    }
                    else
                    {
                        HttpContext.Current.Response.Write("");
                    }
                }
                HttpContext.Current.Response.Write("");

            }
            HttpContext.Current.Response.Write("
" + j + "*" + i + "=" + i * j + "" + "
"); } } }

C#之 十二 带表格的九九乘法_第1张图片




你可能感兴趣的:(遇见,C#)