16 lines
224 B
C
16 lines
224 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
/*
|
|
long num_chars = 0;
|
|
|
|
while (getchar() != EOF)
|
|
++num_chars;
|
|
* or..
|
|
*/
|
|
long num_chars;
|
|
|
|
for (num_chars = 0; getchar() != EOF; ++num_chars);
|
|
printf("%ld\n", num_chars);
|
|
}
|