#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(void)
{
char c;
int space_num= 0;
int nextline_num= 0;
int other_num= 0;
printf("Please type some words.\n");
while((c= getchar())!= '#')
{
if(c== '\n')
nextline_num++;
else if (c== ' ')
space_num++;
else
other_num++;
}
printf("The number of space is %d\n",space_num);
printf("The number of nextline is %d\n",nextline_num);
printf("The other char number is %d\n",other_num);
return 0;
}