fork download
  1. program pr4;
  2. var p,a,x:real;
  3. i,n:integer;
  4. begin
  5. a:=0;
  6. repeat
  7. writeln('enter a-(a < 1)');
  8. readln(a);
  9. if a>=1 then
  10. begin
  11. writeln('a has to be less than 1!!! enter correct value');
  12. until (a=1);
  13. p:=1;
  14. n:=60;
  15. for i:=2 to n do
  16. begin
  17. x:=sqrt((i*i*i)+2);
  18. p:=p*a*sin(x)*ln(x);
  19. end;
  20. writeln('result is ',p:5:2);
  21. readln;
  22. end.
  23.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Free Pascal Compiler version 2.2.0 [2009/11/16] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for i386
Compiling prog.pas
prog.pas(12,1) Fatal: Syntax error, ";" expected but "UNTIL" found
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
stdout
Standard output is empty