program SumOfSeries;
varx: real;n: integer;sum, term: real;
function Factorial(n: integer): Integer;vari, fact: integer;beginfact := 1;
for i := 2 to n dofact := fact * i;
Factorial := fact;end;
beginwrite('Enter a small number x: ');readln(x);
sum := 0;n := 0;
repeatn := n + 1;term := power(2, n) / Factorial(n - 1);
until abs(term) < x;
writeln('Sum of series terms with absolute value >= ', x, ' is ', sum:0:6);end.
program SumOfSeries;
var
x: real;
n: integer;
sum, term: real;
function Factorial(n: integer): Integer;
var
i, fact: integer;
begin
fact := 1;
for i := 2 to n do
fact := fact * i;
Factorial := fact;
end;
begin
write('Enter a small number x: ');
readln(x);
sum := 0;
n := 0;
repeat
if abs(term) >= x thenn := n + 1;
term := power(2, n) / Factorial(n - 1);
sum := sum + term;
until abs(term) < x;
writeln('Sum of series terms with absolute value >= ', x, ' is ', sum:0:6);
end.