题解 1231: 杨辉三角

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1231: 杨辉三角

摘要:``` #include using namespace std; const int N=110; int a[N][N]; int main(){ int n; while(cin……

1231: 杨辉三角

摘要:```cpp #include using namespace std; int main() { int n,a[30][30]; while(cin>>n) ……

杨辉三角-题解(C++代码)

摘要:解题思路: 思路很一般,利用二位数组来存储三角阵。利用两个嵌套的for循环就可以将整个三角阵输入到二位数组中,在二维数组的逐层输入的过程中。先判断本层数组的首尾,给本层数组的首尾都赋值为1,然后再对……

杨辉三角 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a[30][30]={0},n,i,j;for(;scanf("%d",&n)!=EOF;){for(i=……

1231: 杨辉三角

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define N 100void yang(int n){ int i,j,a[N][N];  for(i=0;i<N;i++)  ……

编写题解 1231: 杨辉三角

摘要:解题思路:通过迭代进行循环注意事项:参考代码:#include<stdio.h> int main(){  int a,b,c,d,f[100][100];  while(scanf("%d",……