Post Reply 
RETURN instruction
02-18-2016, 04:35 PM (This post was last modified: 02-18-2016 05:19 PM by compsystems.)
Post: #1
RETURN instruction
in all the languages I've programmed the RETURN instruction end the function
Why not the case in the language of hpprime?

Code:
#cas
prg1(x,y):=
BEGIN
  a:=seq(x^2,x,1,3);
  return a;
   √(x^2+Y^2);  
END;
#end

prg1(3,4) [ENTER] => [1,4,9] OK & not 5
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RETURN instruction - compsystems - 02-18-2016 04:35 PM
RE: RETURN instruction - Han - 02-18-2016, 05:02 PM
RE: RETURN instruction - compsystems - 02-18-2016, 05:07 PM
RE: RETURN instruction - ww63 - 02-19-2016, 01:31 PM



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