Home > Back-end >  Help look at this problem, why do I always run results for (1), every brother please give directions
Help look at this problem, why do I always run results for (1), every brother please give directions

Time:10-29

#include
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
  • Related