Hi, I just started c++ this week. I am learning while loops today and I am really stuck on this question and I don't know how to begin it. I'm supposed to use nested while loops to make a bow tie asterisk like this:
I need to enter in a height, the bow tie on top would have a height of 5.
I think someone asked the same question as this and it never got replied. I will thank anyone who will help a stupid beginner like me with this question.
If you want I can post the solution I did with the nested while loop. It's pretty crude but it does the job. Or I can roughly tell you how I did it and you can work it out.
I'm so sorry and I know it's a pain, but I'm playing around with the variables and I'm crashing, is it possible you to explain to me, where I should change it?
I don't see how it's possible for this program to crash. Unless you mean it runs indefinitely, but that can't be the case either if you didn't touch ++row and ++col.
Any way x controls the appearance of * on the left, y on the right. cnt controls how close the * comes together towards the middle (ie. cnt should represent the middle of the bow tie). There is only so much you can modify col before the * image deforms away from a bow tie, when that happens row must be expanded.