Breaking News

Program Pascal Break & Continue




Program Pascal Break & Continue
__________________________________

Program Breaking;
var
a: integer;
begin
a := 10;
while  a < 20 do
begin
writeln('Nilai dari a adalah  ', a);
a:=a +1;
if( a > 15) then
break; {menghentikan perulangan}
end;
end.

_________________________________


Program Lanjut;
var
a: integer;
begin
a := 10;
repeat
if( a = 15) then
begin
a := a + 1;
continue;
end;
writeln ('Nilai a adalah ', a);
a:= a+1;
until ( a = 20 );
end.

No comments

Featured Post

Download Unduh VHD / VDI Debian10 Moodle 3.11+ PostgreSQL Nginx PHP7.46 fpm- ip192.168.0.200 passwd=jurnalku.my.id untuk virtualbox

Download Unduh VHD / VDI Debian10 Moodle  PostgreSQL Nginx PHP7.46 fpm- ip192.168.0.200 passwd=jurnalku.my.id  untuk virtualbox   Link Downl...