Program Modularisasi dengan Pascal

Tuesday, March 29, 2011 7:35 AM by Computer and Programming
program contoh;
uses wincrt;
var a,b,c:integer;

procedure input;
begin
writeln('masukkan nilai A=');readln(a);
writeln('masukkan nilai B=');readln(b);
writeln('masukkan nilai C=');readln(c);
end;

procedure tambah;
var d:integer;
begin
d:=a+b+c;
writeln('output D=',d);
end;

procedure kali;
var e:integer;
begin
e:=a*b*c;
writeln('output E=',e);

end;


begin
input;
tambah;
kali;
end.

0 Response to "Program Modularisasi dengan Pascal"

Post a Comment