
Write a program that prints its single argument with each space expanded to the next 8-column tab stop.
./tab_expand "a b" | cat -eExpected result
a b$For your own tracking. Tests grade your code.
./tab_expand "cursor found another shortcut" | cat -eExpected result
cursor found another shortcut$./tab_expand | cat -eExpected result
wrong number of arguments$Expected files
tab_expand.cAllowed functions
write
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that prints its single argument with each space expanded to the next 8-column tab stop.
./tab_expand "a b" | cat -eExpected result
a b$For your own tracking. Tests grade your code.
./tab_expand "cursor found another shortcut" | cat -eExpected result
cursor found another shortcut$./tab_expand | cat -eExpected result
wrong number of arguments$Expected files
tab_expand.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.