program Project2;
{$APPTYPE CONSOLE}
uses
SysUtils;
type hari = record
jj: real;
mm: real;
dd: real;
end;
var
h: hari;
konv: real;
begin
{ TODO -oUser -cConsole Main : Insert code here }
write ('jam: '); readln (h.jj);
write ('menit: '); readln (h.mm);
write ('deik: '); readln (h.dd);
konv:= (h.jj/24) + (h.mm/24*1/60) + (h.dd/24*1/60*1/60);
writeln (konv:2:2);
readln;
end.
{$APPTYPE CONSOLE}
uses
SysUtils;
type hari = record
jj: real;
mm: real;
dd: real;
end;
var
h: hari;
konv: real;
begin
{ TODO -oUser -cConsole Main : Insert code here }
write ('jam: '); readln (h.jj);
write ('menit: '); readln (h.mm);
write ('deik: '); readln (h.dd);
konv:= (h.jj/24) + (h.mm/24*1/60) + (h.dd/24*1/60*1/60);
writeln (konv:2:2);
readln;
end.
Tidak ada komentar:
Posting Komentar