Skip to content

Commit

Permalink
added hello 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dpbm committed Feb 9, 2024
1 parent 5b778d1 commit ec4c806
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
20 changes: 20 additions & 0 deletions terceiro-ano/dotnet/hello-2/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace hello_2;

public class Fibo{
public int f(int n){
if(n<=1)
return 1;
return f(n-1)+f(n-2);
}
}

public class Program
{

static void Main(string[] args)
{
Fibo fib = new Fibo();
Console.WriteLine(fib.f(10));
}
}

11 changes: 11 additions & 0 deletions terceiro-ano/dotnet/hello-2/hello-2.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>hello_2</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>

0 comments on commit ec4c806

Please sign in to comment.