forLoops a specific number of times.Syntaxfor (int i = 0; i < n; i++) { }DescriptionInitialization; condition; increment.ExampleLoading editor…▶ Try it yourselfExpected output1 2 3When to use?Known repetition.Related commandswhile← switchwhile →