3 D PascalsTriangle
3 D PascalsTriangle
Kevin
Roll no: 54
PROGRAM :
#include<stdio.h>
#include<conio.h>
main()
{
int a[15][15], i, j , rows , num = 25 , k;
/*variable declaration*/
a[i][j]=a[i-1][j-1]+a[i-1][j];
}
printf("%4d",a[i][j]);
}
printf("\n");
}
getch();
}
Output:
Enter the number of rows: 6