Created
August 3, 2019 19:38
-
-
Save tarunasolanki/ecd97d7aab303be619dc6205aa177541 to your computer and use it in GitHub Desktop.
Program To Print Inverted-Right-angled-Triangle Star Pattern In Python
This file contains 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
#Program to print pattern star pattern | |
# ***** | |
# **** | |
# *** | |
# ** | |
# * | |
n=6 | |
for i in range (1,n): | |
for j in range (1,i,1): | |
print(" ",end="") | |
for k in range(i-1,5,1): | |
print("*",end="") | |
print("") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment