program zzz;
var x,y,z:real;
function log(x,b:real):real;
begin
log:=ln(x)/ln(b)
end;
write('x?');read(x);
write('y?');read(y);
z:=log(x,2)+log(y,3);
write('z=');writeln(z);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
program zzz;
var x,y,z:real;
function log(x,b:real):real;
begin
log:=ln(x)/ln(b)
end;
begin
write('x?');read(x);
write('y?');read(y);
z:=log(x,2)+log(y,3);
write('z=');writeln(z);
end.