diff --git a/Day62/rust/main.exe b/Day62/rust/main.exe new file mode 100644 index 0000000..3188b2f Binary files /dev/null and b/Day62/rust/main.exe differ diff --git a/Day62/rust/main.pdb b/Day62/rust/main.pdb new file mode 100644 index 0000000..7c71f0e Binary files /dev/null and b/Day62/rust/main.pdb differ diff --git a/Day62/rust/main.rs b/Day62/rust/main.rs new file mode 100644 index 0000000..0a67ac6 --- /dev/null +++ b/Day62/rust/main.rs @@ -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); +}