79161020

Date: 2024-11-06 00:05:49
Score: 1.5
Natty:
Report link
#![allow(unused)]

fn countdown(mut y: u8) -> u8 {
    let mut i = 0; 
    for  n in 1..y {
        println!("{}", n);
        i += n 
    }
    return i 
}

fn main() {
    let y = 3;
    println!("{} Liftoff!", countdown(y));
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Erider