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. num[a+1] = num[a] + 2;
  15. a++;
  16. if(a==6)
  17. break;
  18. }
  19. for(int i = 0; i<7;i++)
  20. Console.WriteLine(num[i]);
  21. }
  22. }
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