fork download
  1. program p3;
  2.  
  3. function rec(i, x: real): real;
  4. begin
  5. if i <= 21 then
  6. rec := x * rec(i+1, x+2)
  7. end;
  8.  
  9. begin
  10. writeln('S = ', rec(1, 2));
  11. end.
Success #stdin #stdout 0s 288KB
stdin
Standard input is empty
stdout
S =  0.00000000000000E+000