More var stuff
This commit is contained in:
parent
85e8a9b8ea
commit
4f55c0c186
@ -1,6 +1,9 @@
|
||||
fn main() {
|
||||
let mut x = 5;
|
||||
println!("The value of x is: {}", x);
|
||||
x = 6;
|
||||
let x = 5;
|
||||
|
||||
let x = x + 1;
|
||||
|
||||
let x = x * 2;
|
||||
|
||||
println!("The value of x is: {}", x);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user