fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string temp2 = @" test
  8. line 2 ";
  9. Console.WriteLine(temp2.Trim());
  10. Console.WriteLine(temp2.TrimEnd());
  11. Console.WriteLine(temp2.TrimStart());
  12. }
  13. }
Success #stdin #stdout 0.02s 33848KB
stdin
Standard input is empty
stdout
test
line 2
   test
line 2
test
line 2