Changes

Jump to: navigation, search

Objective-C Looping with do and while Statements

60 bytes added, 18:52, 24 November 2009
no edit summary
<hr>
<google>BUY_OBJC</google>
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).
i = 20
</pre>
 
<google>BUY_OBJC_BOTTOM</google>
<hr>

Navigation menu