Fixed problems in Euler-028 (relied on pop-empty-stack)
This commit is contained in:
parent
42dacb8ce6
commit
355178c74d
@ -1,2 +1,2 @@
|
||||
"d"55+*1+::1-01p*>:01g-:01g-:01g-:01g-:1-#v_>+\:#<_$.@
|
||||
X ^p10-2g10 <
|
||||
0"d"55+*1+::1-01p*>:01g-:01g-:01g-:01g-:1-#v_>\# :#+_+.@
|
||||
X ^p10-2g10 <
|
@ -17,7 +17,7 @@ You can probably see the pattern here. The rest of the algorithm is simply loop
|
||||
I have this little code to calculate the sum of stack values until a zero is encountered:
|
||||
|
||||
```befunge
|
||||
>+\:#<_$
|
||||
>\# :#+_+
|
||||
```
|
||||
|
||||
Perhaps it's useful for someone else.
|
Loading…
Reference in New Issue
Block a user