Updated solution

This commit is contained in:
Sudarshan Kondgekar 2022-10-11 14:12:36 +05:30
parent 80efefae9e
commit 2c73233b74
1 changed files with 2 additions and 1 deletions

View File

@ -24,11 +24,12 @@ fn main() {
```rust
fn main() {
let x: i32 = 10;
let y: i32 = 20;
{
let y: i32 = 5;
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);
}
```