
Write a program that takes a string and prints it with each alphabetical character repeated according to its 0-based position in the alphabet, followed by a newline.
./index_alpha "bc"Expected result
bccFor your own tracking. Tests grade your code.
./index_alpha "Zap!" | cat -eExpected result
ZZZZZZZZZZZZZZZZZZZZZZZZZppppppppppppppp!$./index_alpha | cat -eExpected result
wrong number of arguments$Expected files
index_alpha.cAllowed functions
write
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that takes a string and prints it with each alphabetical character repeated according to its 0-based position in the alphabet, followed by a newline.
./index_alpha "bc"Expected result
bccFor your own tracking. Tests grade your code.
./index_alpha "Zap!" | cat -eExpected result
ZZZZZZZZZZZZZZZZZZZZZZZZZppppppppppppppp!$./index_alpha | cat -eExpected result
wrong number of arguments$Expected files
index_alpha.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.