Testing ANSWER cmd
|
01-29-2017, 05:37 PM
(This post was last modified: 01-29-2017 08:17 PM by compsystems.)
Post: #1
|
|||
|
|||
Testing ANSWER cmd
Hello, the following statements Written on CAS history
print("test ANS cmd"); id0:=0+1; print("ans1: "+Ans); // ans1: 1 id0:=1+1; print("ans2: "+Ans); // ans2: 2 id0:=2+1; print("ans3: "+Ans); // ans3: 3 show in the terminal view test ANS cmd ans1: 1 ans2: 2 ans3: 3 But within a program PHP Code: #cas test ANS cmd ans1: 0 ans2: 0 ans3: 0 Why? The following CAS code Requires storing each statement in an identifier, and you can not use 'Ans' Cmd =( PHP Code: #cas |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Testing ANSWER cmd - compsystems - 01-29-2017 05:37 PM
RE: Testing ANSWER cmd - KeithB - 01-30-2017, 05:07 PM
|
User(s) browsing this thread: 1 Guest(s)