fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int n;
  5. printf("Enter the number: \n");
  6. scanf("%d",&n);
  7.  
  8. for(int i=0;i<=n;i++){
  9. int first =1;
  10.  
  11. for(int j=0;j<=i;j++){
  12. printf("%d",first);
  13. first=first*((i-j)/(j+1));
  14. }
  15. printf("\n");
  16. }
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0.01s 5276KB
stdin
3
stdout
Enter the number: 
1
11
120
1330