User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







objective-c:control_structures:while

while

syntax

while (condition is true/untrue) {
    statement;
}
 
or 
 
while ( condition == true ) {
    do something until condition untrue
    }

while example objective c

        NSInteger i=0;
         while (i < 42) {
                i++;
                if (i==42) NSLog(@"whoooha ");
        }

output

  2012-10-12 00:59:38.184 cppApp[42258:c07] whoooha 
advertising
objective-c/control_structures/while.txt · Last modified: 2012/12/20 12:24 (external edit)

Impressum Datenschutz