fmt
This commit is contained in:
parent
27c33e1992
commit
5e7b7a2c01
20 changed files with 298 additions and 219 deletions
10
src/u47.rs
10
src/u47.rs
|
@ -1,9 +1,11 @@
|
|||
pub fn main() {
|
||||
rec(7)
|
||||
rec(7)
|
||||
}
|
||||
|
||||
fn rec(num: i32) {
|
||||
if num >= 1000 {return;}
|
||||
println!("num: {num}");
|
||||
rec(num + 7)
|
||||
if num >= 1000 {
|
||||
return;
|
||||
}
|
||||
println!("num: {num}");
|
||||
rec(num + 7)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue