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 

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
objective-c/control_structures/while.txt · Last modified: 2024/02/16 01:06 (external edit)

Impressum Datenschutz