Properties
Category
English
Similar Topics
Statistics
Participants
1
Subscribers
0
Votes
3
Views
461
Share
Needs Answer
s=0
n=1
Repeate[100, SetValue[s,s+n], SetValue[n,n+1]]
I get s=5050, n=101. that's ok.
When I use
Repeate[100, If[s+n<500, SetValue[s,s+n]], SetValue[n,n+1]]
I get the same result. but I want s+n<500 finally.
If[] has priority over Repeat[], why?
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
Comments have been locked on this page!