Quote:
Hello.
I have a problem with this simple user prog. (hp49g, rom 1.19.6):
<<
1 4
FOR I
I 1 ->LIST
F APPLY
NEXT
>>
Note that I edited that quote to apply preformatted code.
Maybe you want:
%%HP: T(3);
\<<
1 4
FOR I
I 1 \->LIST
'F' APPLY
NEXT
\>>
Note the ' marks quoting the F.
But I'm really not sure what you want to accomplish. What are the
expected results?
Quote:
It doesn't work but if you debug it, you get the right answer
(obviously the debug can't be the solution).
Are you using the 49G's built-in debugger, or do you mean
"debugging" it mentally? What do you mean by "doesn't work"? Does
it error out, or does it return unexpected results?
Quote:
Is it necessary to use WHILE or REPEAT routines or this program
can work also with FOR..NEXT (maybe with some tricks)?
FOR...NEXT seems to me the most obvious method, although I suppose
that I could come up with a program using WHILE...REPEAT...END if
I cared to put some effort into it.
Regards,
James