Created
February 9, 2020 00:35
-
-
Save oofdere/21c3da07985fdf508d3f0cf6c9e5f782 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
height = int(input("Enter triangle height: ")) | |
for i in range(-height, height, 1): | |
print((height - abs(i)) * "*") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment