
Write a program that takes a single string argument and prints it with all whitespace runs collapsed to a single space and no spaces at the start or end.
./clean_words " cursor found another shortcut "cursor found another shortcut
./clean_words "already clean input"already clean input
./clean_wordswrong number of arguments
clean_words.cwrite
Run the tests to grade your code
Write a program that takes a single string argument and prints it with all whitespace runs collapsed to a single space and no spaces at the start or end.
./clean_words " cursor found another shortcut "cursor found another shortcut
./clean_words "already clean input"already clean input
./clean_wordswrong number of arguments
clean_words.cwrite
Run the tests to grade your code
Memory will appear here