Word analyzer in c programming | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

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?

6th Aug 2020, 4:20 AM
Olivia
1 Resposta
0
isalpha
6th Aug 2020, 4:40 AM
Slick
Slick - avatar