//for(case1; case2; case3) statements;
For used when we want to do looping for a certain number of times.
don't forget to check the case because if we don't check the case, the program can be run with invinite looping.
//while(case)statements;
While used to check the command whether it's true or false.
the program will execute until the command is false.
Do-While
//do{statements;}while
This repetition is the combination of do and while. This repetition will check the validation before running until the condition is false.
Break
//break;
Continue
//continue;
continue is used to skip some statements when the statement is matches with the condition that was set in the beginning.
Garvin Moses Tanuwihardjo - Binusian'22




No comments:
Post a Comment