Ed S on Nostr: #bbcmicrobot 🚀 REM Compute e using Wozniak's method REM Outer loop is to test ...
#bbcmicrobot 🚀
REM Compute e using Wozniak's method
REM Outer loop is to test several possibilities
REM but only the final one is needed
FOR N=2 TO 13
E=0
FOR D=N TO 2 STEP -1
E=E+1
E=E/D
NEXT
PRINT E+2;" ";E+2-EXP1
NEXT
PRINT "Compute e using Wozniak's method"
REM Compute e using Wozniak's method
REM Outer loop is to test several possibilities
REM but only the final one is needed
FOR N=2 TO 13
E=0
FOR D=N TO 2 STEP -1
E=E+1
E=E/D
NEXT
PRINT E+2;" ";E+2-EXP1
NEXT
PRINT "Compute e using Wozniak's method"