mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Bump
This commit is contained in:
18
examples/c/switch-in-loop.c
Normal file
18
examples/c/switch-in-loop.c
Normal file
@@ -0,0 +1,18 @@
|
||||
int main() {
|
||||
int i = 0;
|
||||
int c = 0;
|
||||
while (i < 10) {
|
||||
i++;
|
||||
switch (i) {
|
||||
case (1): {
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
c++;
|
||||
}
|
||||
return c;
|
||||
}
|
||||
Reference in New Issue
Block a user