Example 1: seven stars wide
Code: Select all
*
***
*****
*******
*****
***
* Example 2: six stars wide
Code: Select all
**
****
******
****
** - Use only two variables (not including user-submitted variables).
- Use only one loop with no conditions in the loop body and only one condition in the loop header.
Edit: This post was recovered from search engine cache.