Hello this is #Mastery22<\/a> about repetitions in programs. A repetition is an integral part of a programming language. These repetitive operation or sentences are named as \u201diterations\u201d. An iteration means that a process is repeated again and again. To do this, the principal method is the loop which are commonly used in any programming work. Loops are used when wanting to reduce a process into simpler coding, when something has to be repeated on and on.\u00a0 <\/span>Loops are the basis of the repetition in any programming language.\u00a0 <\/span>There are different types of loops of course, like while, for etc.<\/span><\/p>\n \u00a0<\/span><\/p>\n While- a code of bock that uses a while has to include a condition to be valid and for it to compile and work correctly. They allow the program to perform a particular action while a set condition is true.<\/span><\/p>\n \u00a0<\/span><\/p>\n \u00a0<\/p>\n \u00a0<\/p>\n Break and continue- It can be used to end a loop before some condition. If you type continue, the loop continues to do its work, obviously.<\/span><\/p>\n \u00a0<\/span><\/p>\n This processes enables the programs to repeat an action as long as a particular set condition remains true. <\/span><\/p>\n \u00a0<\/span><\/p>\n A for loop is another kind of repetition when coding in c++. A for loop can provide the beginning of the loop, obviously a condition and updates like\u2026<\/span><\/p>\n ( i=0 ; i <\/span><\/p>\n \u00a0<\/p>\n \u00a0<\/p>\n <\/span><\/p>\n \u00a0<\/p>\n \u00a0<\/span><\/p>\n
<\/span><\/p>\n\u00a0WATCH MY VIDEO \u00a0https:\/
\u00a0<\/h1>\n<\/div>\n","protected":false},"excerpt":{"rendered":"