fn average(total: Int, count: Int) -> Int {
    total // count
}

fn main() {
    let mut sum = 0
    for i in 1..1000001 {
        sum = sum + i
    }
    println(sum)

    let avg = average(sum, 1000000)
    println(avg)

    let ratio = sum / 1000000
    println(ratio)

    let mut countdown = 10
    while countdown > 0 {
        countdown = countdown - 1
    }
    println(countdown)
}
