# for loop in Rust

* for
* range

* If we want to iterate over a set of elements, eg. a range of numbers, then we ususally use `for`.
* `1..5` means the right-hand limit is NOT included.
* `1..=5` means the right-hand limit is included

{% embed include file="src/examples/loops/for-loop/src/main.rs" %}
{% embed include file="src/examples/loops/for-loop/out.out" %}


