yzrhnd

Untitled

Oct 25th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. -- 逆ピラミッド
  2.  
  3. local num = 10
  4.  
  5.  
  6. for j=1,num then
  7. for i = 1,num then
  8. turtle.up()
  9. if (num - i)^2 + i^2 - num ^ 2 < 1 then
  10. turtle.placeDown()
  11. end
  12. end
  13. turtle.forward()
  14. for i = 1,num then
  15. turtle.down()
  16. end
  17.  
  18. end
Advertisement
Add Comment
Please, Sign In to add comment