/* C in Practice */
/* C1.9 Character counting
using a for statement */
#include<stdio.h>main()
{
double nc;
for (nc=0; getchar() != EOF; ++nc)
;
printf("%.0f", nc);
}
[C1.9] Character Counting
最新推荐文章于 2022-02-25 19:38:17 发布
/* C in Practice */
/* C1.9 Character counting
using a for statement */
#include<stdio.h>main()
{
double nc;
for (nc=0; getchar() != EOF; ++nc)
;
printf("%.0f", nc);
}