How to add single and double quotes to a string in Pascal

1 Answer

0 votes
program SingleAndDoubleQuotes;

var
  str: string;
begin
  str := '' + #34 + 'It''s a nice option!' + #34 + ' Save us some time.';
  
  writeln(str);  
end.



(*
run:

"It's a nice option!" Save us some time.

*)

 



answered Mar 12, 2025 by avibootz

Related questions

1 answer 188 views
1 answer 220 views
4 answers 390 views
1 answer 211 views
1 answer 198 views
3 answers 485 views
1 answer 265 views
...