ruchy 4.1.1

A systems scripting language that transpiles to idiomatic Rust with extreme quality engineering
Documentation
// Example 5: Control Flow
// Demonstrates: if/else, for loops, while loops
// Usage: ruchy examples/cli/05_control_flow.ruchy

// If/else
let age = 25
if age >= 18 {
    println("Adult")
} else {
    println("Minor")
}

// For loop
println("Counting 1-5:")
for i in range(1, 6) {
    println(i)
}

// While loop
let count = 0
while count < 3 {
    println(f"Count: {count}")
    count = count + 1
}