Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 199 Bytes
// Section 1.5.2 Example 2 from page 18
#include <stdio.h>
// Count characters in input; 2nd version
main() {
double nc;
nc = 0;
for (nc = 0; getchar() != EOF; ++nc);
printf("%.0f\n", nc);
}
Something went wrong with that request. Please try again.