2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

graph triangles

This commit is contained in:
Martin Thoma 2013-06-12 21:08:53 +02:00
parent ef302ae8d2
commit d9a06acf14
5 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,7 @@
def giveCoordinates(n):
for y in range(0,n):
for x in range(y,2*n-y,2):
print(x,y)
print("")
giveCoordinates(5)