Visibility of a var outside a cycle
|
03-09-2015, 11:59 AM
Post: #1
|
|||
|
|||
Visibility of a var outside a cycle
hi,
I've a code like this one: Code:
now, tn is actually 1024 (i.e.), outside the FOR cycle "Return tn" give 1024, but "return tn^2) give 1449616 and not the right value (1048576); "return tn*2" give correctly 2048, "return tn*tn" give also 1449616... How must I set the variable to give the correct value, also with tn^2 and so on, outside the cycle? Thanks! Salvo ∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Visibility of a var outside a cycle - salvomic - 03-09-2015 11:59 AM
RE: Visibility of a var outside a cycle - DrD - 03-09-2015, 01:39 PM
RE: Visibility of a var outside a cycle - salvomic - 03-09-2015, 01:51 PM
RE: Visibility of a var outside a cycle - DrD - 03-09-2015, 02:27 PM
RE: Visibility of a var outside a cycle - salvomic - 03-09-2015, 02:40 PM
|
User(s) browsing this thread: 1 Guest(s)