4 ms·https://go.dev/tour/flowcontrol/3 https://go.dev/tour/flowcontrol/3 for sum < 1000 { sum += sum }by karmanyaahm 5y agohttps://go.dev/tour/flowcontrol/3 https://go.dev/tour/flowcontrol/3 for sum < 1000 { sum += sum }lmarcos 5y agoWhile using `for` for that particular snippet of code is understandable, you cannot say that while sum < 1000 {} reads better (like English).pishpash 5y agoOnly the same if sum == 0 at the start.