diff --git a/primtenyezo.sln b/primtenyezo.sln new file mode 100644 index 0000000..924e13b --- /dev/null +++ b/primtenyezo.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.33927.289 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "primtenyezo", "primtenyezo\primtenyezo.csproj", "{55D279BD-8CE2-459E-8DE9-855AF41C63BC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {55D279BD-8CE2-459E-8DE9-855AF41C63BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {55D279BD-8CE2-459E-8DE9-855AF41C63BC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {55D279BD-8CE2-459E-8DE9-855AF41C63BC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {55D279BD-8CE2-459E-8DE9-855AF41C63BC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DF20EC92-69B8-4FE2-B8BB-38C138604917} + EndGlobalSection +EndGlobal diff --git a/primtenyezo/App.config b/primtenyezo/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/primtenyezo/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/primtenyezo/Program.cs b/primtenyezo/Program.cs new file mode 100644 index 0000000..ca7b50a --- /dev/null +++ b/primtenyezo/Program.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace primtenyezo +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Prímtényezős felbontás"); + Console.Write("Pozitív egész szám: "); + int szam = Convert.ToInt32(Console.ReadLine()); + int oszto = 2; + while (szam > 1) { + while (szam % oszto == 0) { + Console.WriteLine("{0}\t | \t{1}", szam, oszto); + szam = szam / oszto; + } + oszto++; + } + Console.WriteLine("{0} \t |", szam); + Console.ReadKey(); + } + } +} diff --git a/primtenyezo/Properties/AssemblyInfo.cs b/primtenyezo/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b402dba --- /dev/null +++ b/primtenyezo/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("primtenyezo")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("primtenyezo")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[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("55d279bd-8ce2-459e-8de9-855af41c63bc")] + +// 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/primtenyezo/primtenyezo.csproj b/primtenyezo/primtenyezo.csproj new file mode 100644 index 0000000..8434a3f --- /dev/null +++ b/primtenyezo/primtenyezo.csproj @@ -0,0 +1,53 @@ + + + + + Debug + AnyCPU + {55D279BD-8CE2-459E-8DE9-855AF41C63BC} + Exe + primtenyezo + primtenyezo + 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