Empowering CS learners, aspiring programmers, and startups with AI, Data Science & Programming insights — scaling skills from learning foundations to enterprise-grade solutions.
#include <stdio.h>
#include <cs50.h>
#include <string.h>
int main(void)
{
string enterword = get_string("input");
int t = strlen(enterword);
printf("%i\n", t);
for(int i = 0; i<= t; i++)
{
int counter = 0;
if (enterword[i] == '.' or '!' or '?')
counter = counter + 1;
}
printf("no. of lines:",counter);
}
[/dm_code_snippet]
Not compiling. The error message showing ‘missing a closing parenthesis on line 13 of readability.c.’ There is a closing parenthesis on line 13 though.