Skip to content

Commit

Permalink
Day62 added
Browse files Browse the repository at this point in the history
  • Loading branch information
mishalturkane committed Dec 22, 2024
1 parent 644479d commit 5768d9c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Binary file added Day62/rust/main.exe
Binary file not shown.
Binary file added Day62/rust/main.pdb
Binary file not shown.
27 changes: 27 additions & 0 deletions Day62/rust/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
struct Person {
name: String,
age: u8,
is_student: bool,
}

fn main() {

let person = Person {
name: String::from("Alice"),
age: 25,
is_student: true,
};


println!("Name: {}", person.name);
println!("Age: {}", person.age);
println!("Is Student: {}", person.is_student);

let mut person2 = Person {
name: String::from("Bob"),
age: 30,
is_student: false,
};
person2.age = 31;
println!("Updated Age: {}", person2.age);
}

0 comments on commit 5768d9c

Please sign in to comment.