forLoops a specific number of times.Syntaxfor (int i = 0; i < n; i++) { }DescriptionInitialization; condition; increment. The most common loop.ExampleLoading editor…▶ Try it yourselfExpected output1 2 3When to use?Known repetition.Related commandsfor-each ( : )while← switchfor-each ( : ) →