Rekurziv faktorialis
This commit is contained in:
@@ -30,7 +30,12 @@
|
|||||||
"ProjectGuid": "406a5bb9-3836-40ab-b742-5bbe18bad1ed",
|
"ProjectGuid": "406a5bb9-3836-40ab-b742-5bbe18bad1ed",
|
||||||
"DisplayName": "BuborekRendezes",
|
"DisplayName": "BuborekRendezes",
|
||||||
"ColorIndex": 5
|
"ColorIndex": 5
|
||||||
|
},
|
||||||
|
"f7beeb1c-eb73-42e8-a148-3db8c96b8d56": {
|
||||||
|
"ProjectGuid": "f7beeb1c-eb73-42e8-a148-3db8c96b8d56",
|
||||||
|
"DisplayName": "RekurzivFaktorialis",
|
||||||
|
"ColorIndex": 6
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"NextColorIndex": 6
|
"NextColorIndex": 7
|
||||||
}
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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.csproj.CoreCompileInputs.cache
|
||||||
C:\dev\c#\BuborekRendezes\obj\Debug\BuborekRendezes.exe
|
C:\dev\c#\BuborekRendezes\obj\Debug\BuborekRendezes.exe
|
||||||
C:\dev\c#\BuborekRendezes\obj\Debug\BuborekRendezes.pdb
|
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
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6
RekurzivFaktorialis/App.config
Normal file
6
RekurzivFaktorialis/App.config
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
||||||
24
RekurzivFaktorialis/Program.cs
Normal file
24
RekurzivFaktorialis/Program.cs
Normal file
@@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
36
RekurzivFaktorialis/Properties/AssemblyInfo.cs
Normal file
36
RekurzivFaktorialis/Properties/AssemblyInfo.cs
Normal file
@@ -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")]
|
||||||
53
RekurzivFaktorialis/RekurzivFaktorialis.csproj
Normal file
53
RekurzivFaktorialis/RekurzivFaktorialis.csproj
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{F7BEEB1C-EB73-42E8-A148-3DB8C96B8D56}</ProjectGuid>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<RootNamespace>RekurzivFaktorialis</RootNamespace>
|
||||||
|
<AssemblyName>RekurzivFaktorialis</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
BIN
RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.exe
Normal file
BIN
RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.exe
Normal file
Binary file not shown.
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<configuration>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
</configuration>
|
||||||
BIN
RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.pdb
Normal file
BIN
RekurzivFaktorialis/bin/Debug/RekurzivFaktorialis.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
7f4b213b428f4c013f19137338418ee1f5525793
|
||||||
@@ -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
|
||||||
BIN
RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.exe
Normal file
BIN
RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.exe
Normal file
Binary file not shown.
BIN
RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.pdb
Normal file
BIN
RekurzivFaktorialis/obj/Debug/RekurzivFaktorialis.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AtlagHom", "AtlagHom\AtlagH
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BuborekRendezes", "BuborekRendezes\BuborekRendezes.csproj", "{406A5BB9-3836-40AB-B742-5BBE18BAD1ED}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BuborekRendezes", "BuborekRendezes\BuborekRendezes.csproj", "{406A5BB9-3836-40AB-B742-5BBE18BAD1ED}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RekurzivFaktorialis", "RekurzivFaktorialis\RekurzivFaktorialis.csproj", "{F7BEEB1C-EB73-42E8-A148-3DB8C96B8D56}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
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}.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.ActiveCfg = Release|Any CPU
|
||||||
{406A5BB9-3836-40AB-B742-5BBE18BAD1ED}.Release|Any CPU.Build.0 = 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
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user