CCC '01 J1 - Dressing Up
Submit solution
C++, Python
Points:
1
Time limit:
2.0s
Memory limit:
256M
Problem type
Allowed languages
Canadian Computing Competition: 2001 Stage 1, Junior #1
It is important to keep our computers safe and clean. Some people feel that computers should be well-dressed, also. For this question, you will write a program 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 in the sample output.
Input Specification
One line containing integer \(H\) . You may assume that all input data will be valid.
Sample Input 1
5Sample Output 1
* *
*** ***
**********
*** ***
* *Sample Input 2
7Sample Output 2
* *
*** ***
***** *****
**************
***** *****
*** ***
* *
Comments