Guest User

Untitled

a guest
Mar 12th, 2016
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/python
  2. import sys
  3. def writeCross(size):
  4. for x in range(-size,size):
  5. for y in range(-size,size):
  6. if abs(y)==abs(x) and x!=-size and y!=-size:
  7. sys.stdout.write('*')
  8. else:
  9. sys.stdout.write(' ')
  10. sys.stdout.write('\n')
  11.  
  12. writeCross(int(sys.argv[1]))
Advertisement
Add Comment
Please, Sign In to add comment