1
0
mirror of https://github.com/krislamo/knrc.git synced 2024-11-10 00:30:35 +00:00
knrc/05-char-counting.c

11 lines
113 B
C
Raw Normal View History

2021-11-06 01:29:39 +00:00
#include <stdio.h>
int main()
{
2021-11-09 05:20:01 +00:00
double nc;
2021-11-06 01:29:39 +00:00
2021-11-09 05:20:01 +00:00
for (nc = 0; getchar() != EOF; ++nc)
;
printf("%.0f\n", nc);
2021-11-06 01:29:39 +00:00
}