#include int main() { int c; int tabulate, ws, new; tabulate = ws = new = 0; for(;(c=getchar())!= EOF;) { if(c=='\t') ++tabulate; else if(c==' ') ++ws; else if(c=='\n') ++new; /*else printf("%c",c);*/ } printf("Пробелов = %d Табуляций = %d Новых строк = %d", ws, tabulate, new); getch(); }