Int main ()
{
Char c [81];
Int I, wordnum;
Wordnum=1;
Gets (c);
If (c [0]==' ')
Wordnum=0;
for(i=0; C [I]!='\ 0'; i++);
If (c [I]=='& amp; & [I c + 1]!=' '& amp; & [I c + 1]!='\ 0')
Wordnum++;
Printf (" % d a word ", wordnum);
return 0;
}
CodePudding user response:
for(i=0; C [I]!='\ 0'; I++) ; here semicolon removed