#include
#include
char a[100];
int main()
{
int sum = 1,i;
gets(a);
int len = strlen(a);
for(i = 0;i len-1;i ++) {
if(a[i] == ' '|| a[i] == ',' || a[i] == ';' || a[i] == '!') sum ++;
}
printf("%d\n",sum);
}
#include
#include
char a[100];
int main()
{
int sum = 1,i;
gets(a);
int len = strlen(a);
for(i = 0;i len-1;i ++) {
if(a[i] == ' '|| a[i] == ',' || a[i] == ';' || a[i] == '!') sum ++;
}
printf("%d\n",sum);
}
本文标题:2017-11-22
本文链接:https://www.haomeiwen.com/subject/okdavxtx.html
网友评论