mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
Updated solution
This commit is contained in:
@ -24,11 +24,12 @@ fn main() {
|
|||||||
```rust
|
```rust
|
||||||
fn main() {
|
fn main() {
|
||||||
let x: i32 = 10;
|
let x: i32 = 10;
|
||||||
|
let y: i32 = 20;
|
||||||
{
|
{
|
||||||
let y: i32 = 5;
|
let y: i32 = 5;
|
||||||
println!("The value of x is {} and value of y is {}", x, y);
|
println!("The value of x is {} and value of y is {}", x, y);
|
||||||
}
|
}
|
||||||
println!("The value of x is {}", x);
|
println!("The value of x is {} and value of y is {}", x, y);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user