rustlings/exercises/variables/variables2.rs
Stephan Klauberg c98e5af5df import
2023-09-16 07:33:44 +02:00

16 lines
258 B
Rust

// variables2.rs
//
// Execute `rustlings hint variables2` or use the `hint` watch subcommand for a
// hint.
// I AM DONE
fn main() {
let x:i32=10;
if x == 10 {
println!("x is ten!");
} else {
println!("x is not ten!");
}
}