34,333
edits
Changes
m
Text replacement - "<htmlet>objc<htmlet>" to "<htmlet>objc</htmlet>"
<hr>
<htmlet>objc</htmlet>
The Objective-C ''for'' loop described previously works well when you know in advance how many times a particular task needs to be repeated in a program. There will, however, be instances where code needs to be repeated until a certain condition is met, with no way of knowing in advance how many repetitions are going to be needed to meet that criteria. To address this need, Objective-C provides the ''while'' loop (yet another construct inherited by Objective-C from the C Programming Language).