fork download
  1. var
  2. number: longint;
  3. low,high:Integer;
  4. begin
  5. {$APPTYPE CONSOLE}
  6. write('Enter number>0');
  7. Readln(number);
  8. high:=31;
  9. low:=0;
  10. while(low<=(high shr 1)) do
  11. begin
  12. if(((number shr low) xor (number shr (high-low))) and 1) then
  13. number:=number xor ((1 shl low) or (1 shl (high-low)));
  14. Inc(low);
  15. end;
  16. writeln('New number - ',number);
  17. readln;
  18. end.
  19.  
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(5,4) Warning: APPTYPE is not supported by the target OS
prog.pas(12,7) Error: Boolean expression expected, but got "LongInt"
prog.pas(19) Fatal: There were 1 errors compiling module, stopping
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