fork download
  1. var
  2. i = real;
  3. dipeso = real;
  4. dopeso = real;
  5. rpeso = real;
  6. ypeso = real;
  7. dinar = 113.897700;
  8. dollar = 42.9110;
  9. riyal = 11.448700;
  10. yen = 0.55200;
  11.  
  12. Writeln('Enter an amount: '(i));
  13.  
  14. begin
  15. dipeso := dinar * i;
  16. dopeso := dollar * i;
  17. rpeso := riyal * i;
  18. ypeso := yen *i;
  19.  
  20. case peso of
  21.  
  22. Dinar : Writeln('Dinar to peso: ' + dipeso);
  23. Dollar : Writeln('Dollar to peso: ' + dopeso);
  24. Riyal : Writeln('Riyal to peso: ' + rpeso);
  25. Yen : Writeln('Yen to peso: ' + ypeso);
  26. else
  27. end;
  28. end;
  29. end.
  30.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.d(2): found ';' when expecting '.' following 'real'
prog.d(3): found ';' when expecting '.' following 'real'
prog.d(4): found ';' when expecting '.' following 'real'
prog.d(5): found ';' when expecting '.' following 'real'
prog.d(6): found ';' when expecting '.' following 'real'
prog.d(8): no identifier for declarator dollar
prog.d(9): no identifier for declarator riyal
prog.d(10): no identifier for declarator yen
prog.d(12): unterminated character constant
prog.d(12): found '69U' when expecting ')'
prog.d(12): no identifier for declarator Writeln
prog.d(12): semicolon expected, not 'nter'
prog.d(12): semicolon expected, not 'amount'
prog.d(12): no identifier for declarator amount
prog.d(12): semicolon expected, not ':'
prog.d(12): Declaration expected, not ':'
prog.d(12): unterminated character constant
prog.d(15): semicolon expected, not ':'
prog.d(15): Declaration expected, not ':'
prog.d(16): no identifier for declarator dopeso
prog.d(16): semicolon expected, not ':'
stdout
Standard output is empty