Projektdateien hinzufügen.

This commit is contained in:
2023-03-23 12:24:40 +01:00
parent 5fe92f4f47
commit 33e49f846c
51 changed files with 1444 additions and 0 deletions

10
Overload/Overload.csproj Normal file
View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

23
Overload/Program.cs Normal file
View File

@@ -0,0 +1,23 @@
namespace Overload
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine(Addiere(21,21));
Console.WriteLine(Addiere(10,10,22));
}
static int Addiere(int zahl1, int zahl2)
{
return zahl1 + zahl2;
}
static int Addiere(int zahl1, int zahl2, int zahl3)
{
return zahl1 + zahl2 + zahl3;
}
static double Addiere(double zahl1, int zahl2)
{
return zahl1 + zahl2;
}
}
}