Created
April 1, 2016 14:25
-
-
Save M-ZubairAhmed/c2e972a76be304a6e715a281e2a4252c to your computer and use it in GitHub Desktop.
Creates a right angled triangle with the user defined edge
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
n = int(input("enter triangle number")) | |
ini = 10 | |
for x in range(1,n+1): | |
if (x==1): | |
print (1) | |
else: | |
ini = ini * 10 | |
print (ini) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment