Minggu, 03 April 2011

Struktur Perulangan While-Do

While this loop using the statement-Do. -Do While statement is used to make the process of repetition of a statement or block statement continuously over the logic expression in correct While still valued logic.


Public Forms

 
While the phrase Do statement


Example :

Var
     I:Integer;
Begin
     I:=0;
     While I<5 Do
     Begin
           Writeln(I);
           I:=I+1;
     End;
End.

Tidak ada komentar:

Posting Komentar