
Write a program that draws one bar of # per argument, where the bar for a value of n is n characters long and sits on its own line.
./histogram 4 1 3 | cat -e####$
#$
###$./histogram 0 2 0 | cat -e$
##$
$./histogram -3 | cat -e$./histogram segfault | cat -e$./histogram | cat -ewrong number of arguments$histogram.catoiwrite
Run the tests to grade your code
Write a program that draws one bar of # per argument, where the bar for a value of n is n characters long and sits on its own line.
./histogram 4 1 3 | cat -e####$
#$
###$./histogram 0 2 0 | cat -e$
##$
$./histogram -3 | cat -e$./histogram segfault | cat -e$./histogram | cat -ewrong number of arguments$histogram.catoiwrite
Run the tests to grade your code
Memory will appear here