Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 648
Posted: 04:11pm 10 Jun 2026
Copy link to clipboard
Print this post
There still seems to be a problem with beautifying. Lines 100-120 should line up with line 20 since the FOR N=... loop is now finished.
10 ' Ahl's Simple Benchmark 15 TIMER =0 20 FOR N=1 TO 100: A=N 30 FOR I=1 TO 10 40 A=SQR(A): R=R+RND(1) 50 NEXT I 60 FOR I=1 TO 10 70 A=A^2: R=R+RND(1) 80 NEXT I 90 S=S+A: NEXT N 100 PRINT ABS(1010-S/5) 110 PRINT ABS(1000-R) 120 PRINT TIMER/1000;" seconds"
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11448
Posted: 04:39pm 10 Jun 2026
Copy link to clipboard
Print this post
You need to put next n on a separate line. I won't comment on the programming style