Skip to content

Instantly share code, notes, and snippets.

@M-ZubairAhmed
Created April 1, 2016 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save M-ZubairAhmed/c2e972a76be304a6e715a281e2a4252c to your computer and use it in GitHub Desktop.
Save M-ZubairAhmed/c2e972a76be304a6e715a281e2a4252c to your computer and use it in GitHub Desktop.
Creates a right angled triangle with the user defined edge
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