summaryrefslogtreecommitdiff
path: root/05/main.c
diff options
context:
space:
mode:
Diffstat (limited to '05/main.c')
-rw-r--r--05/main.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/05/main.c b/05/main.c
index d36b6e6..cf2de7e 100644
--- a/05/main.c
+++ b/05/main.c
@@ -23,17 +23,15 @@ long gcd(long a, long b) {
return b;
}
+int f() {
+ lb: goto lb;
+}
+
int main(int argc, char **argv) {
int exp = 0;
- int i;
- int j;
- for (i = 0; i < 10; ++i) {
- for (j = 0; j < 10; ++j) {
- if (j >= i) break;
- exp += 1;
- }
- if (i >= 5) break;
- }
+ lb:
+ exp++;
+ if (exp < 10) goto lb;
return exp ;
}