#include <iostream>
using namespace std;
const int n = 10 ;
void fun_yhsj(int a[][n]) ;
void display_array(const int a[][n]) ;
int main(){
int a[n][n] ={0};
fun_yhsj(a) ;
display_array(a) ;
getchar() ;
return 0 ;
}
void fun_yhsj (int a[][n]){
for (int i=0; i<n; i++){
for (int j=0; j<=i; j++){
a[i][0] = 1 ;
a[j][j] = 1 ;
}
}
for (int i=2; i<n; i++){
for (int j=1; j<i+1; j++){
a[i][j] = a[i-1][j-1] +a[i-1][j] ;
}
}
}
void display_array(const int a[][n]){
for (int i=0; i<n; i++){
for (int j=0; j<=i; j++){
cout << a[i][j] << '\t';
}
cout << endl ;
}
}
using namespace std;
const int n = 10 ;
void fun_yhsj(int a[][n]) ;
void display_array(const int a[][n]) ;
int main(){
int a[n][n] ={0};
fun_yhsj(a) ;
display_array(a) ;
getchar() ;
return 0 ;
}
void fun_yhsj (int a[][n]){
for (int i=0; i<n; i++){
for (int j=0; j<=i; j++){
a[i][0] = 1 ;
a[j][j] = 1 ;
}
}
for (int i=2; i<n; i++){
for (int j=1; j<i+1; j++){
a[i][j] = a[i-1][j-1] +a[i-1][j] ;
}
}
}
void display_array(const int a[][n]){
for (int i=0; i<n; i++){
for (int j=0; j<=i; j++){
cout << a[i][j] << '\t';
}
cout << endl ;
}
}