Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (14 sloc) 247 Bytes
#include <stdio.h>
void main()
{
long nl = 0;
long nt = 0;
long nw = 0;
int c;
while((c = getchar()) != EOF) {
if (c == '\n') nl++;
if (c == '\t') nt++;
if (c == ' ') nw++;
}
printf("%li\t%li\t%li\t\n", nl, nt, nw);
}
Something went wrong with that request. Please try again.