Computer Science Canada

calculating pi

Author:  jdubzisyahweh [ 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

Author:  Dan [ Tue Mar 02, 2010 11:38 am ]
Post subject:  RE:calculating pi

Moved to turing help. Please post in the right section.

Author:  DemonWasp [ 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:

code:

a := 15.70796327/5


not

code:

15.70796327/5=a


: