
Write a program that normalizes one string argument by printing its words separated by exactly three spaces.
./wide_words " ship small\tpatches " | cat -eExpected result
ship small patches$For your own tracking. Tests grade your code.
./wide_words "single" | cat -eExpected result
single$./wide_words | cat -eExpected result
wrong number of arguments$Expected files
wide_words.cAllowed functions
write
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that normalizes one string argument by printing its words separated by exactly three spaces.
./wide_words " ship small\tpatches " | cat -eExpected result
ship small patches$For your own tracking. Tests grade your code.
./wide_words "single" | cat -eExpected result
single$./wide_words | cat -eExpected result
wrong number of arguments$Expected files
wide_words.cAllowed functions
write
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.