Memahami FlowChart pemrograman dengan lazarus

SOAL SOAL LAZARUS-1172var
a,b,c:real;
z:real;
begin
Write(‘Nilai A :’);readln(a);
write(‘Nilai B :’);readln(b);
write(‘Nilai C :’);readln(c);

if (a>10) and (b>10) then
begin
if a>c then
begin
z:=a*b;
write (‘Nilai Z :’,z);
readln;
end
else
begin
z:=a*c;
write (‘Nilai Z :’,z);
readln;
end;
end
else
begin
if (a>10) or (b>10) then
begin
z:=a-b;
write (‘Nilai Z :’,z);
readln;
end
else
begin
if a>b then
begin
z:=b-a;
write (‘Nilai Z :’,z);
readln;
end
else
begin
z:=b-c;
write (‘Nilai Z :’,z);
readln;
end
end
end

end.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s