diff --git a/.vs/c-sharp/project-colors.json b/.vs/c-sharp/project-colors.json index a586eca..1f1f69a 100644 --- a/.vs/c-sharp/project-colors.json +++ b/.vs/c-sharp/project-colors.json @@ -30,7 +30,12 @@ "ProjectGuid": "406a5bb9-3836-40ab-b742-5bbe18bad1ed", "DisplayName": "BuborekRendezes", "ColorIndex": 5 + }, + "f7beeb1c-eb73-42e8-a148-3db8c96b8d56": { + "ProjectGuid": "f7beeb1c-eb73-42e8-a148-3db8c96b8d56", + "DisplayName": "RekurzivFaktorialis", + "ColorIndex": 6 } }, - "NextColorIndex": 6 + "NextColorIndex": 7 } \ No newline at end of file diff --git a/.vs/c-sharp/v17/.suo b/.vs/c-sharp/v17/.suo index e938edf..41f88ef 100644 Binary files a/.vs/c-sharp/v17/.suo and b/.vs/c-sharp/v17/.suo differ diff --git a/AtlagHom/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/AtlagHom/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 5af2d33..ce35228 100644 Binary files a/AtlagHom/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/AtlagHom/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/BuborekRendezes/bin/Debug/BuborekRendezes.exe b/BuborekRendezes/bin/Debug/BuborekRendezes.exe index eb370b6..6c4ee00 100644 Binary files a/BuborekRendezes/bin/Debug/BuborekRendezes.exe and b/BuborekRendezes/bin/Debug/BuborekRendezes.exe differ diff --git a/BuborekRendezes/bin/Debug/BuborekRendezes.pdb b/BuborekRendezes/bin/Debug/BuborekRendezes.pdb index 40b67b6..aef45ef 100644 Binary files a/BuborekRendezes/bin/Debug/BuborekRendezes.pdb and b/BuborekRendezes/bin/Debug/BuborekRendezes.pdb differ diff --git a/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.AssemblyReference.cache b/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.AssemblyReference.cache new file mode 100644 index 0000000..97c8c82 Binary files /dev/null and b/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.AssemblyReference.cache differ diff --git a/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.FileListAbsolute.txt b/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.FileListAbsolute.txt index a89c9f6..b3fb297 100644 --- a/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.FileListAbsolute.txt +++ b/BuborekRendezes/obj/Debug/BuborekRendezes.csproj.FileListAbsolute.txt @@ -5,3 +5,11 @@ C:\dev\c#\BuborekRendezes\obj\Debug\BuborekRendezes.csproj.SuggestedBindingRedir C:\dev\c#\BuborekRendezes\obj\Debug\BuborekRendezes.csproj.CoreCompileInputs.cache C:\dev\c#\BuborekRendezes\obj\Debug\BuborekRendezes.exe C:\dev\c#\BuborekRendezes\obj\Debug\BuborekRendezes.pdb +C:\dev\c#\c-sharp\BuborekRendezes\bin\Debug\BuborekRendezes.exe.config +C:\dev\c#\c-sharp\BuborekRendezes\bin\Debug\BuborekRendezes.exe +C:\dev\c#\c-sharp\BuborekRendezes\bin\Debug\BuborekRendezes.pdb +C:\dev\c#\c-sharp\BuborekRendezes\obj\Debug\BuborekRendezes.csproj.AssemblyReference.cache +C:\dev\c#\c-sharp\BuborekRendezes\obj\Debug\BuborekRendezes.csproj.SuggestedBindingRedirects.cache +C:\dev\c#\c-sharp\BuborekRendezes\obj\Debug\BuborekRendezes.csproj.CoreCompileInputs.cache +C:\dev\c#\c-sharp\BuborekRendezes\obj\Debug\BuborekRendezes.exe +C:\dev\c#\c-sharp\BuborekRendezes\obj\Debug\BuborekRendezes.pdb diff --git a/BuborekRendezes/obj/Debug/BuborekRendezes.exe b/BuborekRendezes/obj/Debug/BuborekRendezes.exe index eb370b6..6c4ee00 100644 Binary files a/BuborekRendezes/obj/Debug/BuborekRendezes.exe and b/BuborekRendezes/obj/Debug/BuborekRendezes.exe differ diff --git a/BuborekRendezes/obj/Debug/BuborekRendezes.pdb b/BuborekRendezes/obj/Debug/BuborekRendezes.pdb index 40b67b6..aef45ef 100644 Binary files a/BuborekRendezes/obj/Debug/BuborekRendezes.pdb and b/BuborekRendezes/obj/Debug/BuborekRendezes.pdb differ diff --git a/BuborekRendezes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/BuborekRendezes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index a3ed0df..8772cff 100644 Binary files a/BuborekRendezes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/BuborekRendezes/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/MinMax/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/MinMax/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index bdc5b3f..44d3e65 100644 Binary files a/MinMax/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/MinMax/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/MinMax/obj/Debug/MinMax.csproj.AssemblyReference.cache b/MinMax/obj/Debug/MinMax.csproj.AssemblyReference.cache index ce6c4ca..126ed02 100644 Binary files a/MinMax/obj/Debug/MinMax.csproj.AssemblyReference.cache and b/MinMax/obj/Debug/MinMax.csproj.AssemblyReference.cache differ diff --git a/RekurzivFaktorialis/App.config b/RekurzivFaktorialis/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/RekurzivFaktorialis/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/RekurzivFaktorialis/Program.cs b/RekurzivFaktorialis/Program.cs new file mode 100644 index 0000000..dd8dc41 --- /dev/null +++ b/RekurzivFaktorialis/Program.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace RekurzivFaktorialis { + internal class Program { + + public static ulong Faktorialis(ulong x) { + if (x == 0) return 1; + else return x * Faktorialis(x - 1); + + } + + static void Main(string[] args) { + + while (true) { + Console.WriteLine(Faktorialis(Convert.ToUInt64(Console.ReadLine()))); + } + //Console.ReadKey(); + } + } +} diff --git a/RekurzivFaktorialis/Properties/AssemblyInfo.cs b/RekurzivFaktorialis/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..61371ec --- /dev/null +++ b/RekurzivFaktorialis/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("RekurzivFaktorialis")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RekurzivFaktorialis")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("f7beeb1c-eb73-42e8-a148-3db8c96b8d56")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/RekurzivFaktorialis/RekurzivFaktorialis.csproj b/RekurzivFaktorialis/RekurzivFaktorialis.csproj new file mode 100644 index 0000000..6044efb --- /dev/null +++ b/RekurzivFaktorialis/RekurzivFaktorialis.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {F7BEEB1C-EB73-42E8-A148-3DB8C96B8D56} + Exe + RekurzivFaktorialis + RekurzivFaktorialis + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.exe b/RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.exe new file mode 100644 index 0000000..5df6f0a Binary files /dev/null and b/RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.exe differ diff --git a/RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.exe.config b/RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.pdb b/RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.pdb new file mode 100644 index 0000000..74ad6b3 Binary files /dev/null and b/RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.pdb differ diff --git a/RekurzivFaktorialis/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/RekurzivFaktorialis/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/RekurzivFaktorialis/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/RekurzivFaktorialis/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/RekurzivFaktorialis/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..9ffafb9 Binary files /dev/null and b/RekurzivFaktorialis/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.csproj.AssemblyReference.cache b/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.csproj.AssemblyReference.cache new file mode 100644 index 0000000..204fdef Binary files /dev/null and b/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.csproj.AssemblyReference.cache differ diff --git a/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.csproj.CoreCompileInputs.cache b/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ee191d7 --- /dev/null +++ b/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +7f4b213b428f4c013f19137338418ee1f5525793 diff --git a/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.csproj.FileListAbsolute.txt b/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..9a622c8 --- /dev/null +++ b/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +C:\dev\c#\c-sharp\RekurzivFaktorialis\bin\Debug\RekurzivFaktorialis.exe.config +C:\dev\c#\c-sharp\RekurzivFaktorialis\bin\Debug\RekurzivFaktorialis.exe +C:\dev\c#\c-sharp\RekurzivFaktorialis\bin\Debug\RekurzivFaktorialis.pdb +C:\dev\c#\c-sharp\RekurzivFaktorialis\obj\Debug\RekurzivFaktorialis.csproj.AssemblyReference.cache +C:\dev\c#\c-sharp\RekurzivFaktorialis\obj\Debug\RekurzivFaktorialis.csproj.SuggestedBindingRedirects.cache +C:\dev\c#\c-sharp\RekurzivFaktorialis\obj\Debug\RekurzivFaktorialis.csproj.CoreCompileInputs.cache +C:\dev\c#\c-sharp\RekurzivFaktorialis\obj\Debug\RekurzivFaktorialis.exe +C:\dev\c#\c-sharp\RekurzivFaktorialis\obj\Debug\RekurzivFaktorialis.pdb diff --git a/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.csproj.SuggestedBindingRedirects.cache b/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.csproj.SuggestedBindingRedirects.cache new file mode 100644 index 0000000..e69de29 diff --git a/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.exe b/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.exe new file mode 100644 index 0000000..5df6f0a Binary files /dev/null and b/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.exe differ diff --git a/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.pdb b/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.pdb new file mode 100644 index 0000000..74ad6b3 Binary files /dev/null and b/RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.pdb differ diff --git a/Szamkitalalo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Szamkitalalo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 85ce0f8..1796b62 100644 Binary files a/Szamkitalalo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/Szamkitalalo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.AssemblyReference.cache b/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.AssemblyReference.cache index 58cdbeb..126ed02 100644 Binary files a/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.AssemblyReference.cache and b/Szamkitalalo/obj/Debug/Szamkitalalo.csproj.AssemblyReference.cache differ diff --git a/Szigetek/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Szigetek/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 1f15f9a..e6ee101 100644 Binary files a/Szigetek/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/Szigetek/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/c-sharp.sln b/c-sharp.sln index 95b46be..fb9a8ad 100644 --- a/c-sharp.sln +++ b/c-sharp.sln @@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AtlagHom", "AtlagHom\AtlagH EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BuborekRendezes", "BuborekRendezes\BuborekRendezes.csproj", "{406A5BB9-3836-40AB-B742-5BBE18BAD1ED}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RekurzivFaktorialis", "RekurzivFaktorialis\RekurzivFaktorialis.csproj", "{F7BEEB1C-EB73-42E8-A148-3DB8C96B8D56}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -45,6 +47,10 @@ Global {406A5BB9-3836-40AB-B742-5BBE18BAD1ED}.Debug|Any CPU.Build.0 = Debug|Any CPU {406A5BB9-3836-40AB-B742-5BBE18BAD1ED}.Release|Any CPU.ActiveCfg = Release|Any CPU {406A5BB9-3836-40AB-B742-5BBE18BAD1ED}.Release|Any CPU.Build.0 = Release|Any CPU + {F7BEEB1C-EB73-42E8-A148-3DB8C96B8D56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F7BEEB1C-EB73-42E8-A148-3DB8C96B8D56}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F7BEEB1C-EB73-42E8-A148-3DB8C96B8D56}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F7BEEB1C-EB73-42E8-A148-3DB8C96B8D56}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/c-sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/c-sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 5a61f3e..2a7adbf 100644 Binary files a/c-sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/c-sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/c-sharp/obj/Debug/c-sharp.csproj.AssemblyReference.cache b/c-sharp/obj/Debug/c-sharp.csproj.AssemblyReference.cache index 58cdbeb..126ed02 100644 Binary files a/c-sharp/obj/Debug/c-sharp.csproj.AssemblyReference.cache and b/c-sharp/obj/Debug/c-sharp.csproj.AssemblyReference.cache differ