There might be a circumstance, when you really want to execute a square of code a few number of times. As a general rule, statements are executed successively: The principal statement in a function is executed first, trailed continuously, etc.
Programming dialects give different control structures that take into account more confounded execution ways.
A loop statement permits us to execute an statement or gathering of statements on numerous occasions and following is the general from of a loop statement in the greater part of the programming languages −
|Sr.No||Loop Type and Description|
Rehashes an statement or gathering of statements while a given condition is valid. It tests the condition prior to executing the loop body.
Execute a grouping of statements on various occasions and contracts the code that deals with the loop variable.
Like 'some time' statement, then again, actually it tests the condition toward the finish of the loop body.
You can utilize at least one loop inside any another 'while', 'for' or 'do..while' loop .
Download and Install Turbo C++ for Windows 7, 8, 8.1, Windows 10 and Windows 11 (32-64 bit>
with full-screen mode and many more extra features.
An object oriented model is a data model based on object-oriented programming, associating methods (procedures>
with objects that can benefit from class hierarchies.