Update euler5 example
This commit is contained in:
parent
383da4ae05
commit
421fbbc873
@ -10,7 +10,7 @@ loop should_continue {
|
|||||||
|
|
||||||
i <- 20;
|
i <- 20;
|
||||||
loop i >= 2; i = i - 1 {
|
loop i >= 2; i = i - 1 {
|
||||||
if num % i != 0 {
|
if num % i {
|
||||||
should_continue = 1;
|
should_continue = 1;
|
||||||
|
|
||||||
// break
|
// break
|
||||||
@ -18,7 +18,7 @@ loop should_continue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if should_continue == 1 {
|
if should_continue {
|
||||||
num = num + 20;
|
num = num + 20;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user