feat: 🙈 Add gitignore

This commit is contained in:
2023-10-12 09:34:33 +02:00
parent 10bca59719
commit ee1cbcfcda
11 changed files with 126 additions and 0 deletions

View File

@ -0,0 +1,16 @@
namespace Lecture.Exercises;
public class Conversion
{
public static int StringToInt(string number)
{
int res = 0;
for (int i = 0; i < 6; i++)
{
res = res * 10 + int.Parse(number[i].ToString());
}
return res;
}
}

10
Lecture/Lecture.csproj Normal file
View 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>

2
Lecture/Program.cs Normal file
View File

@ -0,0 +1,2 @@
Console.WriteLine(Lecture.Exercises.Conversion.StringToInt("123456"));
Console.WriteLine(Lecture.Exercises.Conversion.StringToInt("342523"));