fork(1) download
  1. program UpperLower;
  2. var
  3. S: String;
  4. I: Integer;
  5. begin
  6. while not Eof do begin
  7. readln(S);
  8. for I:=1 to Length(S) do begin
  9. case S[I] of
  10. 'a'..'z': Dec(S[I],$20);
  11. 'A'..'Z': Inc(S[I],$20);
  12. end;
  13. end;
  14. writeln(S);
  15. end;
  16. writeln('EOF.');
  17. end.
Success #stdin #stdout 0.02s 208KB
stdin
Free Pascal
Lazarus
Delphi
りんご
みかん
stdout
fREE pASCAL
lAZARUS
dELPHI
りんご
みかん
EOF.