Post Reply 
Existing CAS commands --> Prime discussion
11-07-2019, 02:41 AM (This post was last modified: 11-07-2019 02:42 AM by toml_12953.)
Post: #68
RE: Existing CAS commands --> Prime discussion
(11-07-2019 01:41 AM)compsystems Wrote:  a:=15; [ENTER] 15 // ok
a+=1; [ENTER] increment(a,1) => 16 // ok
increment(a,1) [ENTER] increment(a,1) ? // expected 17

now
a:=16;
b:=20;
a/=b [ENTER] a/▣ ?

textbook => off
a/=b [ENTER] ok

Try

a:=increment(a,1)

Parameters are passed by value, not reference so the variable a can't be changed when used as a parameter.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Existing CAS commands --> Prime discussion - toml_12953 - 11-07-2019 02:41 AM



User(s) browsing this thread: 1 Guest(s)