fork download
  1. # your code goes here
  2. # your code goes here
  3. str1 = "aaa"
  4. str2 = str1
  5. str1.concat("bbb")
  6. p str1
  7. p str2
  8. str3 = "ccc"
  9. str4 = "ccc"
  10. str4.concat("ddd")
  11. p str3
  12. p str4
  13.  
Success #stdin #stdout 0s 28688KB
stdin
Standard input is empty
stdout
"aaabbb"
"aaabbb"
"ccc"
"cccddd"