Add new solution in variables ex. 4

This commit is contained in:
Juliano Penna
2025-02-07 11:47:41 -03:00
committed by GitHub
parent a01b390749
commit 2ab617a436

View File

@ -35,6 +35,17 @@ fn main() {
4.
```rust
fn main() {
define_x();
}
fn define_x() {
let x = "hello";
println!("{}, world", x);
}
```
```rust
fn main() {
let x = define_x();