stub
This commit is contained in:
parent
b85a7f9b54
commit
94641d14f5
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/target
|
||||
**/*.rs.bk
|
6
Cargo.lock
generated
Normal file
6
Cargo.lock
generated
Normal file
@ -0,0 +1,6 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
[[package]]
|
||||
name = "rustlang-fibonnaci"
|
||||
version = "0.1.0"
|
||||
|
9
Cargo.toml
Normal file
9
Cargo.toml
Normal file
@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "rustlang-fibonnaci"
|
||||
version = "0.1.0"
|
||||
authors = ["Kreyren <KostWarCZE@RiXotStudio.cz>"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
17
src/main.rs
Normal file
17
src/main.rs
Normal file
@ -0,0 +1,17 @@
|
||||
use std::io;
|
||||
|
||||
fn main() {
|
||||
let mut x = String::new();
|
||||
let mut x = String::new();
|
||||
|
||||
loop {
|
||||
let z = x + y;
|
||||
let x = y;
|
||||
let y = z;
|
||||
|
||||
println!("{}", x);
|
||||
if x >= 255 {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user