Post #2114069
2026-05-06 16:32 UTC
@jupiter for (sum=0, k=0;;k++) sum+=pow(a*r,k)
Now if you had left the starting index out of the notation, that would have been a stumper ๐
Replies (1)
-
@jupiter@mastodon.gamedev.place 2026-05-06 16:41
@shana Well the problem with this is, the series may or may not converge. But the program does not terminate. So the program cannot answer *either*, so it's not "just a for loop" ๐