Skip to content
Gregory Morrison edited this page Feb 11, 2023 · 3 revisions

Neko

Euler1

// Euler1 in Neko

var euler1 = function(size) {
    result = 0;

    do {
        if size % 3 == 0 || size % 5 == 0
            result = result + size;
        size = size - 1;
    } while size > 0

    result;
}

$print(euler1(999) + "\n");

sdfg

$ nekoc euler1.neko
$ neko euler1.n
233168
$
Clone this wiki locally