ruchy 4.2.0

A systems scripting language that transpiles to idiomatic Rust with extreme quality engineering
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Example 2: Simple Math
// Demonstrates: Arithmetic operations, variables
// Usage: ruchy examples/cli/02_simple_math.ruchy

let x = 10
let y = 5

println(f"Addition: {x} + {y} = {x + y}")
println(f"Subtraction: {x} - {y} = {x - y}")
println(f"Multiplication: {x} * {y} = {x * y}")
println(f"Division: {x} / {y} = {x / y}")
println(f"Modulo: {x} % {y} = {x % y}")