<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 06 Apr 2005 14:32:10 +0100
From   : "Tim Matthews" <tim.matthews@...>
Subject: Re: Quick to BBC

> 
> 10 MODE 7

hehe. my favourite way to start a program!

> -----Original Message-----
> From: Majordomo List Manager [mailto:majordomo@...] 
> On Behalf Of Richard Gellman
> Sent: 05 April 2005 15:45
> To: bbc-micro@...
> Subject: Re: [BBC-Micro] 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.
> >
> >
> >  
> >
> 
> 
> 

http://www.bbc.co.uk/

This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system. 
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received. 
Further communication will signify your consent to this.
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>