ALGORITHM

Repetition or looping :

1. for

2. while

3. do-while

 

1.FOR

for(exp1;exp2;exp3){
statement1;
statement2;
….
}
exp1 = initialization
exp2 = conditional
exp3 = increment/decrement

2. WHILE

while(exp)statements;

 

Category: Uncategorized
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>