fork(1) download
  1. using System;
  2. namespace OperatorsAppl
  3. {
  4. class Program
  5. {
  6. static void Main( string[] args )
  7. {
  8. int a = 21 ;
  9. int b = 10 ;
  10. int c ;
  11. c = a + b ;
  12. Console . WriteLine( "Line 1 - Value of c is {0"},c);
  13. c = a - b ;
  14. Console . WriteLine( "Line 2 - Value of c is {0}",c);
  15. c = a * b ;
  16. Console . WriteLine( "Line 3 - Value of c is {0}" ,c);
  17. c = a / b ;
  18. Console . WriteLine( "Line 4 - Value of c is {0}" ,c);
  19. c = a % b ;
  20. Console . WriteLine( "Line 5 - Value of c is {0}",c);
  21. c = a ++;
  22. Console . WriteLine( "Line 6 - Value of c is {0}",c);
  23. c = a --;
  24. Console . WriteLine( "Line 7 - Value of c is {0}",c);
  25. Console . ReadLine();
  26. }
  27. }
  28. }
  29.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(12,48): error CS1525: Unexpected symbol `}', expecting `)' or `,'
prog.cs(12,49): error CS1002: ; expected
prog.cs(12,50): error CS1519: Unexpected symbol `,' in class, struct, or interface member declaration
prog.cs(12,52): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
prog.cs(13,3): error CS1519: Unexpected symbol `=' in class, struct, or interface member declaration
prog.cs(13,7): error CS1519: Unexpected symbol `-' in class, struct, or interface member declaration
prog.cs(13,11): error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration
prog.cs(14,20): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
prog.cs(14,52): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
prog.cs(15,3): error CS1519: Unexpected symbol `=' in class, struct, or interface member declaration
prog.cs(16,20): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
prog.cs(16,53): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
prog.cs(17,3): error CS1519: Unexpected symbol `=' in class, struct, or interface member declaration
prog.cs(17,7): error CS1519: Unexpected symbol `/' in class, struct, or interface member declaration
prog.cs(17,11): error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration
prog.cs(18,20): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
prog.cs(18,53): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
prog.cs(19,3): error CS1519: Unexpected symbol `=' in class, struct, or interface member declaration
prog.cs(19,7): error CS1519: Unexpected symbol `%' in class, struct, or interface member declaration
prog.cs(19,11): error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration
prog.cs(20,20): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
prog.cs(20,52): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
prog.cs(21,3): error CS1519: Unexpected symbol `=' in class, struct, or interface member declaration
prog.cs(21,8): error CS1519: Unexpected symbol `++' in class, struct, or interface member declaration
prog.cs(22,20): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
prog.cs(22,52): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
prog.cs(23,3): error CS1519: Unexpected symbol `=' in class, struct, or interface member declaration
prog.cs(23,8): error CS1519: Unexpected symbol `--' in class, struct, or interface member declaration
prog.cs(24,20): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
prog.cs(24,52): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
prog.cs(25,19): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
prog.cs(28,0): error CS1525: Unexpected symbol `}'
Compilation failed: 32 error(s), 0 warnings
stdout
Standard output is empty