calculating pi
Author |
Message |
jdubzisyahweh
|
Posted: Tue Mar 02, 2010 11:27 am Post subject: calculating pi |
|
|
need help getting a program to = pi usin
15.7= 3.14*5
where 3.14 is a variable and
15.7/5
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
pi.t |
Filesize: |
36 Bytes |
Downloaded: |
88 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Tue Mar 02, 2010 11:38 am Post subject: RE:calculating pi |
|
|
Moved to turing help. Please post in the right section.
|
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
DemonWasp
|
Posted: Tue Mar 02, 2010 11:40 am Post subject: RE:calculating pi |
|
|
Have you seriously not learned assignment yet? Here's how an assignment statement works (assigning a variable a new value):
code: |
(variable to set) := (new value, probably a calculation)
|
So what you want to do is:
not
|
|
|
|
|
![](images/spacer.gif) |
|
|