Algorithm 4

Today we learned about repetition syntax, we got three syntax to do the job :

For – looping syntax that doesn’t have to have condition, for syntax : ( expr1; expr2 ; expr3 ) statement:   expr1, initialization, expr2: condition expr3: increment, decrement.

While – this syntax must have a condition and will be execute when the statement is true

Do – While – Will keep looping if the statement is true.

that’s it i guess.

Leave a Reply

Your email address will not be published. Required fields are marked *