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: |
|
 Download |
| Filename: |
pi.t |
| Filesize: |
36 Bytes |
| Downloaded: |
128 Time(s) |
|
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Dan

|
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! |
|
|
|
 |
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
|
|
|
|
|
 |
|
|