C++ while loops

closed account (41U4izwU)
Hi, I am really stuck on this question and I was wondering if someone was able to help me with it.

To print out a bow tie on the computer screen. Your program should take as input the height H of the bow tie, where H is an odd positive integer greater than or equal to 5. A bow tie with H rows (and 2H columns) should then be printed using the pattern shown below. You may assume that all input data will be valid.
For this question you should read the input from the keyboard and print the output to the screen. Your program should use the following two functions to print upper and lower portion of the bow tie.

Ex. Enter 5

*----------- -*
***------***
**********
***------***
*-------------*

The hypens are meant to be spaces, not part of the code.
I need to put this in a while loop. Thank you!
Topic archived. No new replies allowed.