void prt(char ch,int n)
{ int i;
for(i=1;i<=n;i++)
printf(i%6!=0?"%c":"%c/n",ch);
}
执行调用语句prt('*',24);后,函数共输出了 (9) 行*号。