20-while & repeat while loop in iOS Swift | Use this retrieve data from the Collections like array

Опубликовано: 10 Октябрь 2024
на канале: Apple apps
113
3

loops:
• In programming, loops are used to repeat a block of code until a specified condition is met or repeatedly execute a block of statements.

• in looping, a program executes the sequence of statements many times until the stated condition becomes false.

• A loop consists of two parts, a body of a loop and a control statement.

• The control statement is a combination of some conditions that direct the body of the loop to execute until the specified condition becomes false.

1) while
2) repeat while
3) for in
4) forEach

----------------------------------------------------------------------------------
Thank you - Vikranth Apps