Advertisement
linesguy

A229037 Plotter Source

Aug 27th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. 10 hgr : hcolor = 3 : for i = 1 to 20 : print : next i
  2. 20 items = 280
  3. 30 dim item(items) : item(1) = 1 : item(2) = 1
  4. 40 j = 3
  5.  
  6. 50 item(j) = 1
  7. 60 max = int((j-1)/2)
  8. 70 k = 1
  9. 80 d1 = item(j)-item(j-k)
  10. 90 d2 = item(j-k)-item(j-2*k)
  11. 100 if d1=d2 then item(j) = item(j) + 1 :goto 70 : rem k = 1
  12. 110 if k < max then k = k + 1 : goto 80 : rem d1 = item(j)...
  13. 120 hplot j,159-item(j) : print "term ";j;" = ";item(j)
  14. 130 if j < items then j = j + 1 : goto 50 : rem item(j) = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement