Koepnick

for loop

Jan 15th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.15 KB | None | 0 0
  1. for i := 0; i< 10; i++ {
  2.     // Do stuff
  3. }
  4.  
  5. sum := 1
  6. for ; sum < 1000; {
  7.     sum += sum
  8. }
  9.  
  10. for sum < 1000 {
  11.     sum += sum
  12. }
  13.  
  14. for {
  15.     // Runs forever
  16. }
Advertisement
Add Comment
Please, Sign In to add comment