fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int t = 2;
  8. int n=7, x=2, y=4;
  9. while (t>0)
  10. {
  11. for (int i = 1; i < n; i++)
  12. {
  13. if (i % x == 0 && i % y != 0)
  14. {
  15. Console.Write(i+" ");
  16. t--;
  17. }
  18. }
  19. Console.WriteLine();
  20. for (int i = 1; i < n; i++)
  21. {
  22. n=35;
  23. x = 5;
  24. y = 12;
  25. if (i % x == 0 && i % y != 0)
  26. {
  27. Console.Write(i+" ");
  28. t--;
  29. }
  30. }
  31. }
  32. Console.ReadKey();
  33. }
  34. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
using System;
^
1 error
stdout
Standard output is empty