[try Beta version]
Not logged in

 
Horizontal Bar Chart Program Help!

Sep 23, 2016 at 3:34am

Write a program that reads 5 numbers (each between 1 and 25). For each number that’s read, your program should print a line containing that number of adjacent asterisks. (Hint: use nested for statements)


Sample input: 5 6 7 2 3
Sample output:
*****
******
*******
**
***
Sep 23, 2016 at 3:36am
Send me a private message.
Topic archived. No new replies allowed.