``1rogram looping;

uses wincrt;

var

pilihan,a,b,lebaran:integer;

begin

writeln;

writeln('1. for to do');

writeln('2. while do');

writeln('3. repeat until');

writeln('pilihan anda ?');readln(pilihan);

case pilihan of

1:

begin

for a:= 1 to 3 do

writeln('lebaran');

end;

2:

begin

a:=1;

b:=1;

while a<=3 do

begin

b:=1;

while b<=a do

begin

. end. end. until a>=21. b:= b*2. writeln.write('?').' '). end. a:=a+3. a:=a*2. repeat write(a. end. end. end. 3: begin a:=3. else writeln('pilihan anda salah(!)').