This commit is contained in:
Kreyren 2020-01-22 20:33:44 +00:00
parent b85a7f9b54
commit 94641d14f5
4 changed files with 34 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/target
**/*.rs.bk

6
Cargo.lock generated Normal file
View 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
View 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
View 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
}
}
}