fork download
  1. Program exer (input,output);
  2. var i,N,p,c:integer;
  3. begin
  4. readln (N);
  5. i:=1;
  6. c:=i mod 10;
  7. p:=0;
  8. while (i<=N)) do
  9. begin
  10. if (i=2) or (i=5) or (c=1) or (c=3) or (c=7) or (c=9) and
  11. begin
  12. p:=p+1;
  13. i:=i+1;
  14. c:= i mod 10;
  15. end;
  16. end;
  17. writeln (p);
  18. end.
  19.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.pas: In main program:
prog.pas:8: error: syntax error before `)'
stdout
Standard output is empty