fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string stringToShow1, stringToShow2;
  8. string surname = "Беляев";
  9. string name = "Данил";
  10. string otchestvo = "Геннадьевич";
  11.  
  12. int age = 18;
  13. double weight = 84;
  14.  
  15. stringToShow1 = surname + " " + name + " " + otchestvo + ", возраст " + age + ", вес " + weight;
  16.  
  17. surname = "Куценко";
  18. name = "Марк";
  19. otchestvo = "Павлович";
  20.  
  21. age = 18;
  22. weight = 83;
  23.  
  24. stringToShow2 = surname + " " + name " " + otchestvo + ", возраст " + age + ", вес " + weight;
  25.  
  26. System.Console.WriteLine(stringToShow1);
  27. System.Console.WriteLine(stringToShow2);
  28.  
  29. System.Console.ReadLine();
  30. }
  31. }
Compilation error #stdin compilation error #stdout 0.02s 15884KB
stdin
Standard input is empty
compilation info
prog.cs(24,41): error CS1525: Unexpected symbol ` '
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty