Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # prints two triangles side by side
- value_1 = 1
- value_2 = 7
- line = 1
- x = 1
- y = 1
- while (line <= 8):
- while (x <= value_1):
- print "*",
- x = x + 1
- while (y <= value_2):
- print "#",
- y = y + 1
- print
- value_1 = value_1 + 1
- value_2 = value_2 - 1
- line = line + 1
- x = 1
- y = 1
Advertisement
Add Comment
Please, Sign In to add comment