reid-llvm/examples/loops.reid

12 lines
142 B
Plaintext

// Arithmetic, function calls and imports!
fn main() -> u32 {
let mut num = 0;
while num < 10 {
num = num + 1;
}
return num;
}