fn main() { for n in -2..5 { println!("{} is {}",n,match n{ 1 => "one", 0 => "zero", _ if n < 0 => "negative", _ => "plural" }); } }
To embed this project on your website, copy the following code and paste it into your website's HTML: