Store and print row total length
Dependencies
- [2]
OK5CKW6ERework everything, use references - [3]
ZP2CTPQIDelete debug printout - [4]
USO5PZWOStart with the print function, separate mutable and immutable functions - [*]
5TH3AA4610 mm extra space
Change contents
- edit in src/bin/main.rs at line 41
let mut length_sum = 0; - edit in src/bin/main.rs at line 43
length_sum += plank.length; - replacement in src/bin/main.rs at line 61
println!("\t\trow: {:#?}", num + 1);println!("\t Row length: {length_sum}\trow: {:#?}", num + 1);