fork(2) 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 a;
  10. Console.WriteLine("Test:Vertauschen sie den Inhalt zweier Variablen und Dokumentieren Sie")
  11.  
  12.  
  13.  
  14. a = x;
  15. Console.WriteLine("1.Zwischenspeicherung");
  16. x = y;//y auf x übertragen
  17. Console.WriteLine("2.x ist jetzt y");
  18. y = a;//x auf y übertragten
  19. Console.WriteLine("x ist jetzt:");
  20. Console.WriteLine(x);
  21. Console.WriteLine("y ist jetz:");
  22. Console.WriteLine(y);
  23.  
  24. }
  25. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
5
compilation info
prog.cs(14,2): error CS1525: Unexpected symbol `a'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty