mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-13 21:03:31 +02:00
feat: progress iterators
This commit is contained in:
@@ -10,6 +10,8 @@ fn factorial(num: u64) -> u64 {
|
||||
// - additional variables
|
||||
// For an extra challenge, don't use:
|
||||
// - recursion
|
||||
|
||||
(1..=num).product()
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user