Last active
August 3, 2019 15:07
-
-
Save tarunasolanki/11c9894a8867b8e8b230004b63c9183b to your computer and use it in GitHub Desktop.
Program to print right right-angled triangle using 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 star pattern as per below | |
# * | |
# ** | |
# *** | |
# **** | |
#***** | |
n=6 | |
for i in range(1,n): | |
for j in range (n,i,-1): | |
print(" ",end="") | |
for k in range (1,i+1): | |
print("*",end="") | |
print("") | |
print("Happy coding!!!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment