#include <stdio.h>/* count lines in input */int main(void){ int c, nb, nt, nl; nb = 0; nt = 0; nl = 0; while ((c = getchar()) != EOF) { if (c == ' ') ++nb; if (c == '\t') ++nt; if (c == '\n') ++nl; } printf("%d %d %d\n", nb, nt, nl); return 0; }
添加回答
举报
0/150
提交
取消