打印杨辉三角形(要求十行)
程序如下~~但运行不了~提示error:undefined symbol _perintf in module~~~求解~~~
/* Note:Your choice is C IDE */ #include "stdio.h" void main() {int r,c; int number[11][11]; for (r=1;r<=10;r++) { for (c=1;c<=r;c++) { if (c==1) number[r][c]=1; else if (c==r) number[r][c]=1; else number[r][c]=number[r-1][c]+number[r-1][c-1]; } } for (r=1;r<=10;r++) for (c=1;c<=r;c++) printf ("%d",number[r][c]); perintf ("/n"); }