#include<stdio.h> #include<conio.h> void main() { int i,j,ick,k; clrscr(); for(i=0;i<=5;i++) { ick=1; for(j=0,k=0;j<=5;j++) if(i+j<=4) printf("%3c",' '); else { printf("%6d",ick); k++; ick=ick*(i-k+1)/k; } printf("\n"); } getch(); } |
___________________________________________________________________________
Post a Comment