九九矩阵
来源:互联网 发布:宝鸡市广电网络新建路 编辑:程序博客网 时间:2024/06/09 15:08
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication65
{
class Program
{
static void Main(string[] args)
{
int[,] arr = new int[9, 9];
for (int i = 0; i < arr.GetLength(0); i++)
{
for (int j = 0; j < arr.GetLength(1); j++)
{
if (i == j || i + j == 8) arr[i, j] = 1;
else arr[i, j] = 0;
Console.Write("{0} ", arr[i, j]);
}
Console.WriteLine();
Console.ReadKey();
}
}
}
}
0 0
- 九九矩阵
- 九九矩阵
- 九九矩阵
- 九
- 九
- 九度1164 旋转矩阵
- 九度-1164 旋转矩阵
- 【九度OJ】1001【矩阵】
- 九度1081矩阵二分法
- 九九
- 九九
- 九度OJ 题目1191:矩阵最大值
- 九度OJ 题目1180:对称矩阵
- 九度&题目1180:对称矩阵
- 题目1391:顺时针打印矩阵-九度
- 九度OJ 1164 旋转矩阵
- 九度OJ 1139 最大子矩阵
- 九度 题目1391:顺时针打印矩阵
- SQLSERVER的逆向工程,将数据库导入到PowerDesigner中
- SDUT 2105 小泉的难题
- UVa_725 - Division
- IOS FMDB 使用
- Activity的四种launchMode
- 九九矩阵
- hibernate QBC 例子
- SDUT 2278 商人的诀窍
- OSG::Drawable, Geode的用法
- Notification使用 通过服务更新进度通知&在Activity中监听服务进度
- SQL数据库更改SQL Sever身份认证
- Activity的task相关
- AES 带有位移量的加密、解密
- hibernate QBE例子