fork download
  1. switch (x)
  2. {
  3. case 5: this.Width = away; this.Height = ahead; break;
  4. case 6: this.Width = away + step; this.Height = ahead + step; break;
  5. case 7: this.Width = away + step * 2; this.Height = ahead + step * 2; break;
  6. case 8: this.Width = away + step * 3; this.Height = ahead + step * 3; break;
  7. case 9: this.Width = away + step * 4; this.Height = ahead + step * 4; break;
  8. case 10: this.Width = away + step * 5; this.Height = ahead + step * 5; break;
  9. case 11: this.Width = away + step * 6; this.Height = ahead + step * 6; break;
  10. case 12: this.Width = away + step * 7; this.Height = ahead + step * 7; break;
  11. case 13: this.Width = away + step * 8; this.Height = ahead + step * 8; break;
  12. case 14: this.Width = away + step * 9; this.Height = ahead + step * 9; break;
  13. case 15: this.Width = away + step * 10; this.Height = ahead + step * 10; break;
  14. case 16: this.Width = away + step * 11; this.Height = ahead + step * 11; break;
  15. case 17: this.Width = away + step * 12; this.Height = ahead + step * 12; break;
  16. case 18: this.Width = away + step * 13; this.Height = ahead + step * 13; break;
  17. case 19: this.Width = away + step * 14; this.Height = ahead + step * 14; break;
  18. case 20: this.Width = away + step * 15; this.Height = ahead + step * 15; break;
  19. case 21: this.Width = away + step * 16; this.Height = ahead + step * 16; break;
  20. case 22: this.Width = away + step * 17; this.Height = ahead + step * 17; break;
  21. case 23: this.Width = away + step * 18; this.Height = ahead + step * 18; break;
  22. case 24: this.Width = away + step * 19; this.Height = ahead + step * 19; break;
  23. case 25: this.Width = away + step * 20; this.Height = ahead + step * 20; break;
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,1): error CS1525: Unexpected symbol `switch'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty