fork download
  1. using System;
  2.  
  3. namespace SampleNamespace
  4. {
  5. public class SampleClass
  6. {
  7. public static void Main()
  8. {
  9. bool c = true;
  10. int a;
  11. int i;
  12. int iArray = new i[10];
  13. for (i=0; i<10; i++)
  14. {
  15. if (i/3==c);
  16. Console.WriteLine("Число яке ділиться на 3 це {0}", i);
  17. if (i/5==c);
  18. Console.WriteLine("Число яке ділиться на 5 це {0}", i);
  19. if (i/7==c);
  20. Console.WriteLine("Число яке ділиться на 7 це {0}", i);
  21. }
  22. } // End of Main function (program statup)
  23. } // End of SampleClass
  24. } // End of SampleNamespace
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(16,20): warning CS0642: Possible mistaken empty statement
prog.cs(18,20): warning CS0642: Possible mistaken empty statement
prog.cs(20,20): warning CS0642: Possible mistaken empty statement
prog.cs(12,30): error CS0246: The type or namespace name `i' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(15,21): error CS0019: Operator `==' cannot be applied to operands of type `int' and `bool'
prog.cs(17,21): error CS0019: Operator `==' cannot be applied to operands of type `int' and `bool'
prog.cs(19,21): error CS0019: Operator `==' cannot be applied to operands of type `int' and `bool'
Compilation failed: 4 error(s), 3 warnings
stdout
Standard output is empty