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:
I tried again, according to your manuscript source program is not wrong, but I and your compiler may perhaps different versions of the compiler can lead to different results, if conditional word can you try to download another compiler.CodePudding user response:
Is the for (I=0; C [I]!='\ 0'; I++); Remove the semicolon ahCodePudding user response:
The