int wflag;
int wcount = 0;
while(c = getchar())
{
if(c == ' ' || c == '\t')
{
wflag = 0;
}
else if(wflag == 0)
{
wcount++;
wflag = 1;
}
}
int wflag;
int wcount = 0;
while(c = getchar())
{
if(c == ' ' || c == '\t')
{
wflag = 0;
}
else if(wflag == 0)
{
wcount++;
wflag = 1;
}
}