/* * Program to print the Pascal triangle upto a height of n * @author-Karan Narain(karan@iitk.ac.in) * */ #include int main() { int a[10][10]; int i,j,c,n,k; printf("How many lines of the Pascal Triangle do you want to print?(Max. 10)\n"); scanf("%d",&n); if(n>10) { printf("Number of lines should not be greater than 10\n"); return 0; } printf("Printing %d lines of the Pascal Triangle...\n\n",n); for(i=0;i