Facebook
From nate, 5 Months ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 386
  1. var l = 12;var y;var i;var t = [];textInput("calcn", "");textLabel("calci", "0");onEvent("calcn", "change", function(){t=[];i=0;timedLoop(1,function(){l=getText("calcn");l=l%2==0?l/2:3*l+1;i++;setText("calcn",l);setText("calci",i);if(l==1|l==y){stopTimedLoop();}y=l;});});
  2.