This commit is contained in:
Tyrel Souza 2023-05-27 11:50:02 -04:00
parent dab55f5a6f
commit 01624ba8a5
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
2 changed files with 3 additions and 303 deletions

View File

@ -22,15 +22,13 @@ impl Rectangle {
}
}
// MAIN
fn main() {
let rect1 = Rectangle { width:30, height:50};
let rect2 = Rectangle { width:10, height:40};
let rect3 = Rectangle { width:60, height:45};
println!("r: {}", rect1.area());
println!("r: {}", rect2.area());
println!("r: {}", rect3.area());
@ -43,3 +41,5 @@ fn main() {
}

300
tags

File diff suppressed because one or more lines are too long