当前位置: 首页 > news >正文

用html做卖珠宝的网站百度搜索榜排名

用html做卖珠宝的网站,百度搜索榜排名,惠州 网站建设,北京网站建设公司哪个好杨辉 Blaise Pascal 这是某些程序员看完会哭的代码。 杨辉三角形(Yanghui Triangle),是一种序列数值的三角形几何排列,最早出现于南宋数学家杨辉1261年所著的《详解九章算法》一书。 欧洲学者,最先由帕斯卡&#x…

杨辉 

Blaise Pascal 

这是某些程序员看完会哭的代码。

杨辉三角形(Yanghui Triangle),是一种序列数值的三角形几何排列,最早出现于南宋·数学家·杨辉1261年所著的《详解九章算法》一书。

欧洲学者,最先由帕斯卡(1623----1662)在1654年发现这一规律,故杨辉三角又称“帕斯卡三角形(Pascal Truangle)”。

图中暖色为偶数;冷色为奇数。

代码1:

private void button1_Click(object sender, EventArgs e)
{
    webBrowser1.DocumentText = Magic_Numbers.YangHui_Triangle(20);
}
 

private void button1_Click(object sender, EventArgs e)
{webBrowser1.DocumentText = Magic_Numbers.YangHui_Triangle(20);
}

代码2:

using System;
using System.Text;

namespace Legalsoft.Truffer.Algorithm
{
    public static partial class Magic_Numbers
    {
        public static string YangHui_Triangle(int n)
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendLine("<style>");
            sb.AppendLine(".n0 { float:left;width:90px;height:25px;line-height:25px;font-size:14px;text-align:center;border:dotted 1px #993333;background-color:#FFF9F9;margin-right:10px;margin-bottom:10px; } ");
            sb.AppendLine(".n1 { float:left;width:90px;height:25px;line-height:25px;font-size:14px;text-align:center;border:dotted 1px #333399;background-color:#F9F9FF;margin-right:10px;margin-bottom:10px; } ");
            sb.AppendLine("</style>");
            sb.AppendLine("<center>");
            long[] last = new long[n];
            last[0] = 1;
            for (int i = 1; i <= n; i++)
            {
                sb.AppendLine("<table><tr><td>");
                long[] array = new long[i];
                array[0] = 1;
                sb.AppendLine("<div class='n"+  (array[0]%2) +"'>" + array[0] + "</div>");
                for (int j = 1; j < i; j++)
                {
                    array[j] = last[j - 1] + last[j];
                    sb.AppendLine("<div class='n" + (array[j] % 2) + "'>" + array[j] + "</div>");
                }
                for (int j = 0; j < i; j++)
                {
                    last[j] = array[j];
                }
                sb.AppendLine("</td></tr></table>");
            }
            return sb.ToString();
        }
    }
}
 

using System;
using System.Text;namespace Legalsoft.Truffer.Algorithm
{public static partial class Magic_Numbers{public static string YangHui_Triangle(int n){StringBuilder sb = new StringBuilder();sb.AppendLine("<style>");sb.AppendLine(".n0 { float:left;width:90px;height:25px;line-height:25px;font-size:14px;text-align:center;border:dotted 1px #993333;background-color:#FFF9F9;margin-right:10px;margin-bottom:10px; } ");sb.AppendLine(".n1 { float:left;width:90px;height:25px;line-height:25px;font-size:14px;text-align:center;border:dotted 1px #333399;background-color:#F9F9FF;margin-right:10px;margin-bottom:10px; } ");sb.AppendLine("</style>");sb.AppendLine("<center>");long[] last = new long[n];last[0] = 1;for (int i = 1; i <= n; i++){sb.AppendLine("<table><tr><td>");long[] array = new long[i];array[0] = 1;sb.AppendLine("<div class='n"+  (array[0]%2) +"'>" + array[0] + "</div>");for (int j = 1; j < i; j++){array[j] = last[j - 1] + last[j];sb.AppendLine("<div class='n" + (array[j] % 2) + "'>" + array[j] + "</div>");}for (int j = 0; j < i; j++){last[j] = array[j];}sb.AppendLine("</td></tr></table>");}return sb.ToString();}}
}

http://www.hkea.cn/news/620193/

相关文章:

  • 网站推广优化教程游戏代理加盟平台
  • 网站提升权重全国疫情高峰感染进度
  • 营销型网站怎么做智能建站abc
  • 捷信做单官方网站网络服务主要包括什么
  • 网站建设的方案费用什么时候网络推广
  • 这么做3d展示网站公司百度官网优化
  • 工业设计软件上市公司搜索引擎优化的方法
  • 网站建设公司创意网站网络推广推广
  • 浙江三建建设集团有限公司网站关键词的作用
  • 网站建设官方网站教育培训机构加盟十大排名
  • 万网上传网站seo免费
  • 孝感做网站公司百度热议排名软件
  • 建设网站费用吗廊坊seo快速排名
  • 网站建设公司怎样拓展网站业务大连网站推广
  • 什么网站可以免费做找客户东莞seo建站推广费用
  • 合肥微信网站建设购物网站如何推广
  • 网站建设课程简介图片百度官网认证免费
  • 月夜影视在线观看免费完整版韩剧关键词排名优化报价
  • 做网站的工作时间兰州seo公司
  • css怎么嵌入到html直通车关键词优化口诀
  • 虚拟网站php专业型seo网站关键词排名提升
  • 找人合伙做网站平台b2b电商平台
  • 手机网站建设技术方案找网站设计公司
  • 杭州如何设计公司网站惠州seo网站推广
  • 成都网站建设门户大连企业网站建站模板
  • 游戏卡充值可以做网站吗百度竞价关键词出价技巧
  • 建设企业网站就等于开展网络营销网店推广实训报告
  • dede无法更新网站主页到百度联盟注册
  • wordpress支持爱奇艺企业网站seo托管怎么做
  • 永川做网站的武汉百度快速排名提升