I added a while loop, with counter. But I'm not sure why it's an infinite loop. can someone modify this so I can learn what I'm doing wrong? I only want this loop to run 5 times.
you're right. Gosh it's so late and I'm blanking out.
Do I need another variable? I see num is being modified (num++) Can that be my counter variable? =/ I don't know where to stick counter++ in so it runs 5 times and the while loop can stop.
I tried sticking it in: cout<<"*" << counter++;
Bad idea.
So do you want to print "input" stars "counter" times? If so, you'll just want to increment counter once inside the while loop, but outside of the for loop. Or you can just turn the while loop into a for loop itself.