Loading Loft runtime…
Loft Playground
— Examples —
▶ Run
Source
fn main() { println("Hello from Loft!"); for i in 1..11 { if i % 3 == 0 and i % 5 == 0 { println("FizzBuzz"); } else if i % 3 == 0 { println("Fizz"); } else if i % 5 == 0 { println("Buzz"); } else { println("{i}"); } } }
Output
Diagnostics
Ready
Ctrl+Enter to run