标签:clu def print col main pre class ++ bsp
#include <stdio.h> #include <stdlib.h> #define N 15 int main() { int a[N][N]={0}; int i = 0; int j = 0; for(i = 0;i < N;i++) { a[i][0] = 1; a[i][i] = 1; } for(j = 1;j < N;j++) { for(i = 2;i < N;i++) { a[i][j]=a[i-1][j-1]+a[i-1][j]; } } for(i = 0;i < N;i++) { for(j = 0;j < N;j++) { if(i>=j) { printf("%-5d",a[i][j]); } } printf("\n"); } return 0; }
标签:clu def print col main pre class ++ bsp
原文地址:https://www.cnblogs.com/zhule2018/p/8985725.html