aienos.com
Source of www.aienos.com, served from my own hardware
Brought by drakestapleton
aienos.com / om / omega-reference / vendor / examples / mistake_for_bound.om
| 1 | note mistake_for_bound: for takes no bound; its count is the limit. Use while COND bound N for a bounded variable loop |
| 2 | fn main to int |
| 3 | n = ulong 5 |
| 4 | s = ulong 0 |
| 5 | for i ulong n bound 10 |
| 6 | s = add s i |
| 7 | end |
| 8 | ret int s |
| 9 | end |