-
bar graph help
Hi all, just a quick question. How can i take a user inputed int and convert that to a visual repercenitive for a bar graph? like if the user inputs a "5", how can i convert that to ***** or #####. Basically im trying to make a bar graph and im losing my mind. lol
-
A loop?
Code:
int user_input = the number you got from the user;
int i;
/* Output a horizontal "bar" of user_input #'s, */
for (i = 0; i < user_input; i++)
putchar('#');
/* then a newline to move to the start of next line. */
putchar('\n');
Are you sure you haven't skipped class?
-
lol not a single day. ever since we went over functions i've been a little lost.