Compare commits
3 commits
73d6593cd1
...
cd1458b139
Author | SHA1 | Date | |
---|---|---|---|
cd1458b139 | |||
be5588f02c | |||
daec0d625f |
4 changed files with 74 additions and 2 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;
|
||||
}
|
|
@ -1,10 +1,10 @@
|
|||
## Tec Stack
|
||||
Language: `lang`
|
||||
Language: `c#`
|
||||
Framework: `none`
|
||||
Librarys: `none`
|
||||
|
||||
## Description
|
||||
Basic Template for a Learning Repo
|
||||
A Basic CLI Programm printing out the Fibbonachio
|
||||
|
||||
## Setup
|
||||
|
||||
|
|
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