This website requires JavaScript.
Explore
Help
Sign In
trimill
/
complexpr
Watch
1
Star
0
Fork
You've already forked complexpr
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
d9b1f08bbf
complexpr
/
examples
/
collatz.cxpr
11 lines
132 B
Text
Raw
Normal View
History
Unescape
Escape
added comparisons, builtin functions, while loops
2022-09-09 20:08:40 +00:00
let n = 29;
while n != 1 {
println(n);
if n % 2 == 0 {
n = n/2;
} else {
n = 3*n+1;
}
}
added functions (they are not good yet)
2022-09-12 20:53:04 +00:00
println(n);
Reference in a new issue
Copy permalink