You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Test_C/1.8.txt

21 lines
449 B

#include <stdio.h>
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();
}