Projektdateien hinzufügen.
This commit is contained in:
10
Overload/Overload.csproj
Normal file
10
Overload/Overload.csproj
Normal 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
23
Overload/Program.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user