removed break statements from if-then-else

This commit is contained in:
Milo Gilad 2017-08-26 08:30:30 -04:00
parent a6359357fd
commit 82a37a456a

View File

@ -119,11 +119,11 @@ foreach (int foreach_demo_var in foreach_demo) {
} // foreach works on any iterable collection } // foreach works on any iterable collection
if (a == 0) { if (a == 0) {
break; stdout.printf("%d\n", a);
} else if (a > 1) { } else if (a > 1) {
stdout.printf("%d\n", a); stdout.printf("%d\n", a);
} else { } else {
break; stdout.printf("A is less than 0");
} // if-then-else } // if-then-else
switch (a) { switch (a) {