杨辉三角
来源:互联网 发布:大数据技能大赛试题 编辑:程序博客网 时间:2024/05/08 15:41
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication6{ class Program { static void Main(string[] args) { int[,] b= new int[12,12]; for (int i = 0; i <12 ; i++) { int j = i; for (int k = 1; k <= j; k++) { if (k == 1) { b[j, k] = 1; } else if (k == j) { b[j, k] = 1; } else { b[j, k] = b[j - 1, k - 1] + b[j - 1, k]; } Console.Write(b[j, k] + " "); } Console.WriteLine(); } Console.ReadLine(); } }}
0 0
- 杨辉三角/帕斯卡三角
- (尹成)杨辉三角(正三角 倒三角)
- 学习:杨辉三角(帕斯卡三角)
- 杨辉三角
- 杨辉三角
- 杨辉三角
- 杨辉三角算法
- C# 杨辉三角
- 杨辉三角
- 杨辉三角
- 杨辉三角程序
- 打印杨辉三角
- 杨辉三角
- 杨辉三角
- 杨辉三角
- 杨辉三角源代码
- 杨辉三角~~~~~~~~
- 杨辉三角
- 51单片机引线
- memcached--delete--replace--set--get--incr--decr--stats
- Javascript 赋值机制详解
- PowerDesigner V16.5 安装文件 及 破解文件
- 从文本文件中读取注册服务条款
- 杨辉三角
- SPFA ---可以解决dijsktar出现负权的
- CFileStatus 使用详解
- 数据库的三级模式:外模式、模式和内模式
- 提高Android Support Library稳定性的三个关键方法
- 第十三周 项目4:(1)
- js实例属性和原型属性示例详解
- UML中的关系
- 曹操乃奸雄----(奸贼、奸雄、枭雄定义)、曹操他爸花了一亿元钱买官来的