Added types
This commit is contained in:
@ -5,7 +5,7 @@ main() {
|
||||
collatz(12)
|
||||
}
|
||||
|
||||
collatz(x) {
|
||||
collatz(x Int) {
|
||||
loop {
|
||||
if x & 1 == 0 {
|
||||
x /= 2
|
||||
|
Reference in New Issue
Block a user