fork download
  1. program HelloWorld;
  2. uses crt;
  3. function factorial(n : longint) : longint;
  4. begin
  5. if (n>0) then
  6. begin
  7. factorial:= n*factorial(n-1);
  8. end
  9. else
  10. factorial:= 1;
  11. end;
  12. var
  13. n : longint;
  14. r : longint;
  15. x : Real;
  16. begin
  17. readln(n);
  18. readln(r);
  19. x := factorial(n)/ ( factorial(r) * factorial (n-r));
  20. Writeln(n,' kombinasi ',r, ' adalah ', factorial(n));
  21. Readln;
  22. end.
  23.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Mozart Compiler 1.4.0 (20080704) playing Oz 3

%%% feeding file prog.oz

%*************************** parse error ************************
%**
%** syntax error, unexpected ';', expecting T_ENDOFFILE
%**
%** in file "./prog.oz", line 1, column 18
%** ------------------ rejected (1 error)
stdout
Standard output is empty