Date : Tue, 05 Apr 2005 15:45:21 +0100
From : Richard Gellman <splodge@...>
Subject: Re: Quick to BBC
10 MODE 7
20 REM Starting factor is 2
30 pi = 2
40 FOR I%=2 to 50000000 STEP 2
50 pi = pi * i * i / ((i -1 ) * (i+1))
60 NEXT
70 PRINT "Pi is approximately: ";pi'
80 REM the next line is redundant
90 END
Not a lot different really :P
-- Richard
Tom Drage wrote:
>This is a program someone wrote for QuickBasic.
>
>
>DEFDBL A-Z
>Pi = 2 'Starting factor
>FOR i = 2 TO 5000000 STEP 2
> Pi = Pi * i * i / ((i - 1) * (i + 1))
>NEXT
>PRINT "Pi is approximately:"; Pi
>END
>
>
>Would it be possible to convert that to BBC?
>
>Thanks, Tom.
>
>
>
>