Heres my code that isnt working... I need it to repeat inputted text word by word, 1 word per line, no punctuation. Thank you! First post btw! i look forward to learning a lot here and spreading the knowledge!
Code:#include <stdio.h> #include <ctype.h> int main(void) { int usertext; int newline = 0; while ((usertext = getchar() ) !=EOF) { if (isalpha(usertext) ) if (ispunct(usertext) ) if (isspace(usertext) ) putchar(usertext); else { putchar (usertext); } } return 0; }


Reply With Quote
Bookmarks