fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int [] num = new int[7];
  8. num[0] = 2;
  9. int a = 0;
  10. while(1)
  11. {
  12. num[a+1] = num[a] + 3;
  13. a++;
  14. if(a==6)
  15. break;
  16. num[a+1] = num[a] + 2;
  17. a++;
  18. if(a==6)
  19. break;
  20. }
  21. for(int i = 0; i<7;i++)
  22. Console.WriteLine(num[i]);
  23. }
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(10,9): error CS0031: Constant value `1' cannot be converted to a `bool'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty