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