Compare commits
5 commits
master
...
c#-fibbona
Author | SHA1 | Date | |
---|---|---|---|
69424b4546 | |||
a48057f2f6 | |||
cd1458b139 | |||
be5588f02c | |||
daec0d625f |
4 changed files with 80 additions and 6 deletions
38
.gitignore
vendored
Normal file
38
.gitignore
vendored
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
*.swp
|
||||||
|
*.*~
|
||||||
|
project.lock.json
|
||||||
|
.DS_Store
|
||||||
|
*.pyc
|
||||||
|
nupkg/
|
||||||
|
|
||||||
|
# Visual Studio Code
|
||||||
|
.vscode
|
||||||
|
|
||||||
|
# Rider
|
||||||
|
.idea
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.userosscache
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Dd]ebugPublic/
|
||||||
|
[Rr]elease/
|
||||||
|
[Rr]eleases/
|
||||||
|
x64/
|
||||||
|
x86/
|
||||||
|
build/
|
||||||
|
bld/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
[Oo]ut/
|
||||||
|
msbuild.log
|
||||||
|
msbuild.err
|
||||||
|
msbuild.wrn
|
||||||
|
|
||||||
|
# Visual Studio 2015
|
||||||
|
.vs/
|
||||||
|
|
24
Program.cs
Normal file
24
Program.cs
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
|
||||||
|
int amount;
|
||||||
|
|
||||||
|
ASK_INPUT:
|
||||||
|
Console.WriteLine("Enter how many numbers you want to compute:");
|
||||||
|
string input = Console.ReadLine();
|
||||||
|
|
||||||
|
if(!Int32.TryParse(input, out amount)){
|
||||||
|
Console.WriteLine("Input Wasn't a Number!");
|
||||||
|
goto ASK_INPUT;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Declare Variables used for Calculation
|
||||||
|
System.Numerics.BigInteger themp;
|
||||||
|
System.Numerics.BigInteger a = 1;
|
||||||
|
System.Numerics.BigInteger b = 1;
|
||||||
|
|
||||||
|
for (int i = 1; i < amount + 1; i++)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"{i}: {a}\n");
|
||||||
|
themp = a;
|
||||||
|
a = a + b;
|
||||||
|
b = themp;
|
||||||
|
}
|
14
Readme.md
14
Readme.md
|
@ -1,15 +1,17 @@
|
||||||
## Tec Stack
|
## Tec Stack
|
||||||
Language: `lang`
|
Language: `c#`
|
||||||
Framework: `none`
|
Framework: `dotnet`
|
||||||
Librarys: `none`
|
Librarys: `none`
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
Basic Template for a Learning Repo
|
A Basic CLI Programm printing out the Fibbonachi
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
### On Linux
|
### On Linux
|
||||||
|
|
||||||
- step1
|
Requirements: Dotnet
|
||||||
- step2
|
|
||||||
- step3
|
- Clone Repo
|
||||||
|
- Go into Repo Folder
|
||||||
|
- Run `dotnet run`
|
||||||
|
|
10
fibbonachio.csproj
Normal file
10
fibbonachio.csproj
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
Loading…
Reference in a new issue