mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
21 lines
393 B
Java
21 lines
393 B
Java
class C {
|
|
int foo(int n) {
|
|
int s = 0;
|
|
for (int i = 0; i < n; i++) {
|
|
switch (i % 4) {
|
|
case 1:
|
|
s += i;
|
|
continue;
|
|
case 2:
|
|
continue;
|
|
case 3:
|
|
<weak_warning descr="Duplicate branch in 'switch'">s += i;
|
|
continue;</weak_warning>
|
|
default:
|
|
s += i;
|
|
}
|
|
s /= 2;
|
|
}
|
|
return s;
|
|
}
|
|
} |