33,311
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
int main(void)
{
int i, n;
char c;
printf("This program prints a table of squares.\n");
printf("Enter number of entries in table: ");
scanf("%d", &n);
c=getchar();//这里
for (i = 1; i <= n; i++){
printf("%10d\t%10d\n", i, i * i);
if (i%24==0 ){
printf("Press Enter to continue...\n");
c=getchar();
}
}
return 0;
}