source: CIVL/mods/dev.civl.abc/examples/c/switchloop.c

main
Last change on this file was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5664 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 328 bytes
Line 
1int x = 0;
2int main() {
3 while (x<10) {
4 switch(x) {
5 case 1: while (x>5) {
6 x--;
7 if (x == 2) break;
8 }
9 continue;
10 case 2: while (x<7) {
11 x++;
12 if (x == 3) continue;
13 }
14 break;
15 default: x=42;
16 }
17 x = 17;
18 }
19}
Note: See TracBrowser for help on using the repository browser.