Linux

ASCII score bars and a gorblimey command

The problem is to build a string of asterisks and hyphens for a score out of 10. if the score is 6 the string is ******—-. If the score is 4 the string is ****——. Three command-line solutions are demonstrated here.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.

Back to top button