fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int x =3;
  8. int y =4;
  9. int z;
  10. Console.WriteLine("Test:Vertauschen sie den Inhalt zweier Variablen und Dokumentieren Sie")
  11.  
  12.  
  13. Console.WriteLine(x);
  14.  
  15. Console.WriteLine(y);
  16. z = x; //Zwischenspeicher
  17. Console.WriteLine("1.Zwischenspeicherung");
  18. x = y;//y auf x übertragen
  19. Console.WriteLine("2.x ist jetzt y");
  20. y = z;//x auf y übertragten
  21. Console.WriteLine("x ist jetzt:");
  22. Console.WriteLine(x);
  23. Console.WriteLine("y ist jetz:");
  24. Console.WriteLine(y);
  25.  
  26. }
  27. }
Compilation error #stdin compilation error #stdout 0.04s 23888KB
stdin
5
compilation info
prog.cs(13,2): error CS1525: Unexpected symbol `Console'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty