/* Pascal Triangle - Program to print Pascals triangle for n rows */ #include #include long fact(int n) ; void main() { int n, r, c, j ; clrscr() ; printf("Enter the number of rows: ") ; scanf("%d", &n) ; printf("Pascal triangle for %d rows is as shown: \n", n) ; for(r=0 ; r