I need help with my HW
Write a program that generates a following shapes made of some character. The program should prompt the user for the appropriate inputs. User will write “The shape” and get the output as diagram of the shape.
1 Hollowed Triangle:
2. filled Triangle:
3. Hollowed Rectangle:
4. filled Rectangle:
5. Hollowed Square:
6. filled Square:
7. Hollowed Diamond:
8. filled Diamond:
The program should permit the user to keep going or terminate after each drawing is made.
ex;
1. Hollowed Triangle:
*
**
***
****
*****
******
2. Non Hollowed Triangle:
*
**
* *
* *
* *
******
Comments
Leave a comment