Program Tugas dengan Pascal

Tuesday, March 29, 2011 7:51 AM by Computer and Programming

Prugram tugas;

Uses wincrt;
Var s,l,k:integer;
Function luas:integer;
Begin
Write(‘masukkan sisi:’);readln(s);
l:=s*s;
writeln(‘luas:’,l);
end;
Function keliling:integer;
Begin
Write(‘masukkan sisi:’);readln(s);
k:=s*4;
writeln(‘keliling:’’k);
end;
begin
luas;
keliling;
end.

0 Response to "Program Tugas dengan Pascal"

Post a Comment