![Rust Programming By Example](https://wfqqreader-1252317822.image.myqcloud.com/cover/324/36700324/b_36700324.jpg)
上QQ阅读APP看书,第一时间看更新
Control flow
We'll now look at how to write conditions and loops in Rust. Conditions are useful to execute a block of code when a certain situation happens, and loops allow you to repeat a block of code a number of times, until a condition is met.