A for-loop is a control flow statement used to specify iteration in computer science. It consists of two parts: a header and a body, with the header defining the iteration and the body being executed once per iteration. For-loops are typically used when the number of iterations is known before entering the loop. The name for-loop comes from the word "for" which is used as the keyword in many programming languages.
University of Washington
Summer 2022
This introductory course teaches programming using Java. Students learn computational problem-solving techniques, functional decomposition, control structures, data abstraction, and code documentation. No prior programming experience is required.
No concepts data
+ 46 more concepts