Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
13
Task/Integer-sequence/Rust/integer-sequence.rust
Normal file
13
Task/Integer-sequence/Rust/integer-sequence.rust
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
extern mod extra;
|
||||
use extra::bigint::BigUint;
|
||||
use std::num::One;
|
||||
|
||||
fn main() {
|
||||
let one: BigUint = One::one();
|
||||
let mut i: BigUint = One::one();
|
||||
|
||||
loop {
|
||||
println!("{:s}", i.to_str());
|
||||
i = i + one;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue