
-----------------------------------
jdubzisyahweh
Tue Mar 02, 2010 11:27 am

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

-----------------------------------
Dan
Tue Mar 02, 2010 11:38 am

RE:calculating pi
-----------------------------------
Moved to turing help. Please post in the right section.

-----------------------------------
DemonWasp
Tue Mar 02, 2010 11:40 am

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)
[/code]

So what you want to do is:

[code]
a := 15.70796327/5
[/code]

not

[code]
15.70796327/5=a
[/code]
