there.
I am trying to complete pset2 Readability and have a doubt on counting words. Can this be an approach?
int words = 0;
for (int i = 0; i< n; i++)
{
if (isblank(text[i]))
{
words++;
}
}
printf("%i word(s)\n", words + 1);
Since there are more words than spaces I wrote "words + 1" on the printf function, but for some reason it doesn't seem right. Thanks for the help, I am really struggling with these problem sets!