fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. using System;
  8.  
  9. public class Test
  10. {
  11. public static void Main()
  12. {
  13. Console.WriteLine ("Enter a number");
  14. string inputNumber = Console.ReadLine();
  15. int inputNumberParsed = int.Parse(inputNumber);
  16.  
  17. if (inputNumberParsed % 1 = 0)
  18. {
  19. Console.WriteLine ("1");
  20. }
  21. if (inputNumberParsed % 2 = 0)
  22. {
  23. Console.WriteLine ("2");
  24. }
  25. }
  26. }
  27. }
  28. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(7,8): error CS1525: Unexpected symbol `System', expecting `('
prog.cs(9,0): error CS1525: Unexpected symbol `public', expecting `('
prog.cs(10,0): error CS1525: Unexpected symbol `{', expecting `('
prog.cs(11,1): error CS1525: Unexpected symbol `public', expecting `('
prog.cs(11,16): error CS1547: Keyword `void' cannot be used in this context
prog.cs(11,24): error CS1525: Unexpected symbol `(', expecting `('
prog.cs(17,28): error CS1525: Unexpected symbol `='
prog.cs(17,31): error CS1525: Unexpected symbol `)'
prog.cs(21,28): error CS1525: Unexpected symbol `='
prog.cs(21,31): error CS1525: Unexpected symbol `)'
prog.cs(28,0): error CS1525: Unexpected symbol `}'
Compilation failed: 11 error(s), 0 warnings
stdout
Standard output is empty