
Write a program that draws a centered pyramid of # characters whose height is given as the single argument.
./pyramid 3 | cat -eExpected result
#$
###$
#####$For your own tracking. Tests grade your code.
./pyramid 1 | cat -eExpected result
#$./pyramid | cat -eExpected result
wrong number of arguments$Expected files
pyramid.cAllowed functions
atoiwrite
v0.40: Create exercises. Challenge the community.
Meet Studio →Write a program that draws a centered pyramid of # characters whose height is given as the single argument.
./pyramid 3 | cat -eExpected result
#$
###$
#####$For your own tracking. Tests grade your code.
./pyramid 1 | cat -eExpected result
#$./pyramid | cat -eExpected result
wrong number of arguments$Expected files
pyramid.cAllowed functions
atoiwrite
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.