fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int a = s;
  8. int b = z;
  9. System.Console.WriteLine("a="+a+",b="+b);
  10.  
  11. int result = a + b;
  12. System.Console.WriteLine("Сложение, a + b = " + result);
  13.  
  14. result = a * b;
  15. System.Console.WriteLine("Умножение, a * b = " + result);
  16.  
  17. result= a / b
  18. System.Console.WriteLine("Деление, a / b = " + result + " a и b - целые числа, деление только нацело");
  19.  
  20. }
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(18,2): error CS1525: Unexpected symbol `System'
prog.cs(18,103): error CS1525: Unexpected symbol `)', expecting `;' or `}'
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty