Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Word analyzer in c programming
I was given an assignment to ask the user for a word with 25 or fewer characters (a char string), I was then supposed to determine if the input was a word depending on the first character. If it started with a number or punctuation/special character then it wasnāt a word and if the word started with ā#ā the loop would end. To do this I put if, else if, & else statements paired with āisdigitā, āispunctā, etc. inside a do while loop. But how would I analyze every character to determine if itās a word?
1 Resposta
0
isalpha