func preparesweetdish() { var sugar int = 100; for i := 0; i < 10; i++ { if sugar < 0 { fmt.println("oops! time to start again with a new sugar batch."); break; } else { fmt.println("adding sugar..."); sugar -= 10; } } fmt.println("your sneaky sweet dish is ready. despite the briefings, there was no need to dismiss the sugar; this preexplanatory step ensured we used just the right amount. enjoy!"); }