Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

A for-loop statement is a programming loop statement that performs predefined tasks while or until a predetermined condition is met.

For a general example of an if-else statement, not specific to any particular programming language, see "What is for?".

history | excerpt history