fork download
  1. #include<stdio.h>
  2.  
  3. int main(){
  4. int n;
  5.  
  6. scanf("%d", &n);
  7.  
  8. for(int i=0; i<=n+1; i++){
  9. int u=1;
  10. for(int j=0; j<=i; j++){
  11. printf("%d ", u);
  12. u=u*(i-j)/(j+1);
  13. }printf("\n");
  14. }
  15. }
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
1 
1 1