10 задание .помогите пожалуйста, в чем ошибка:
program niv;
const s=0;
var k,n:integer;
s1,s2:real;
begin
writeln('введите число');
for k:=1 to n do
begin
if ('k четное') then
begin
s1:=s+(exp(k)*ln(-1))/((2*k+1)*k);
writeln('s1=',s1);
if ('k нечетное') then
s2:=s+(exp(k)*ln(1))/((2*k+1)*k);
writeln('s2=',s2);
writeln('s:=s1+s2',s);
end;
end;
end.
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.