Skip to content

Commit

Permalink
feat(list): updated progress percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerotask committed Apr 19, 2021
1 parent bd48544 commit 1c6f7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ fn main() {
}
}
});
let percentage_progress = exercises_done as f32 / exercises.len() as f32;
let percentage_progress = exercises_done as f32 / exercises.len() as f32 * 100.0;
println!(
"Progress: You completed {} / {} exercises ({:.2} %).",
exercises_done,
Expand Down

0 comments on commit 1c6f7e4

Please sign in to comment.