Skip to content

Instantly share code, notes, and snippets.

@popey456963
Created October 28, 2015 14:23
Show Gist options
  • Select an option

  • Save popey456963/8634481199eb76a98f0f to your computer and use it in GitHub Desktop.

Select an option

Save popey456963/8634481199eb76a98f0f to your computer and use it in GitHub Desktop.
Printing a Pattern
n,d=int(input()),"123456789"
for i in range(n):print("+"*i+d[:n-i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment