Какие ошибки в проге? (Задание во вложении) Паскаль выдает "a = NaN, f = NaN"
var x,y,z,k,l,m,n,o,a,f,k1,l1,o1:real;
begin
write('Введите значение х = '); read(x);
write('Введите значение y = '); read(y);
write('Введите значение z = '); read(z);
k:=x/y; k1:=exp(ln(x)*k);
l:=y/(x*z); l1:=exp(ln(l)*(1/3));
a:=abs(k1-l1);
writeln('a = ', a);
m:=a-x;
n:=y-(z/(y-x));
o:=sqr(y-x); o1:=1+o;
f:=m*n/o1;
writeln('f = ', f);
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.