C-ALGO-800-04

Ada 3 jenis syntax perulangan:

  1. For
    for(exp1; exp2; exp3) {  statement1;  statement2;

      ……. }

  2. While
    while(exp){  statement1;  statement2;

       ….. }

  3. Do-while
    do{    < statements >;

    } while(exp);

 

Leave a Reply

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