diff --git a/Program.cs b/Program.cs index 6e9e919..003a0ec 100644 --- a/Program.cs +++ b/Program.cs @@ -3,65 +3,29 @@ class Program { const int dimensione=5; + + const int divisibile=7; + + static void Main(string[] args) { Console.Clear(); //dichiarazione e inizializzazione variabili - int scelta=0; - bool opzione1=false; - bool opzione5=false; - string input=""; - int i=0; - int p=0; - int d=0; - int k=0; - int n=dimensione-1; - int numeri=0; - int somma=0; - int media=0; - const int divisibile=7; + int scelta; + bool opzione1=false, opzione5=false; int[] insieme1=new int[dimensione]; - for (int j=0; j=dimensione && Convert.ToInt32(input)%2==0){ - Console.WriteLine("E' stato inserito il numero massimo di numeri pari, riprovare."); - } - else if (d>=dimensione && Convert.ToInt32(input)%2!=0){ - Console.WriteLine("E' stato inserito il numero massimo di numeri dispari, riprovare."); - } - //assegnazione negli array - else { - if (input!="q"){//non si è interrotto l'inserimento - if(Convert.ToInt32(input)%2==0){//se pari - pari[p]=Convert.ToInt32(input); - p++; - } - else{ - dispari[d]=Convert.ToInt32(input); - d++; - } - } - i++; - } - } - while (input!="q" && i Exe - net9.0 + net8.0 enable enable + true diff --git a/array_funzioni.sln b/array_funzioni.sln index 7321d12..97df0c1 100644 --- a/array_funzioni.sln +++ b/array_funzioni.sln @@ -1,15 +1,25 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.0.31903.59 + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.002.0 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "array_funzioni", "array_funzioni.csproj", { -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "array_funzioni", "array_funzioni.csproj", "{864A6207-1F69-41C7-9970-C11E4861CA13}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {864A6207-1F69-41C7-9970-C11E4861CA13}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {864A6207-1F69-41C7-9970-C11E4861CA13}.Debug|Any CPU.Build.0 = Debug|Any CPU + {864A6207-1F69-41C7-9970-C11E4861CA13}.Release|Any CPU.ActiveCfg = Release|Any CPU + {864A6207-1F69-41C7-9970-C11E4861CA13}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A818DE5B-CCE3-4EBA-BFAF-4309F309D985} + EndGlobalSection +EndGlobal diff --git a/bin/Debug/net8.0/array_funzioni b/bin/Debug/net8.0/array_funzioni new file mode 100755 index 0000000..6b67251 Binary files /dev/null and b/bin/Debug/net8.0/array_funzioni differ diff --git a/bin/Debug/net8.0/array_funzioni.deps.json b/bin/Debug/net8.0/array_funzioni.deps.json new file mode 100644 index 0000000..5271704 --- /dev/null +++ b/bin/Debug/net8.0/array_funzioni.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "array_funzioni/1.0.0": { + "runtime": { + "array_funzioni.dll": {} + } + } + } + }, + "libraries": { + "array_funzioni/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/bin/Debug/net8.0/array_funzioni.dll b/bin/Debug/net8.0/array_funzioni.dll new file mode 100644 index 0000000..a777454 Binary files /dev/null and b/bin/Debug/net8.0/array_funzioni.dll differ diff --git a/bin/Debug/net8.0/array_funzioni.pdb b/bin/Debug/net8.0/array_funzioni.pdb new file mode 100644 index 0000000..eb806dd Binary files /dev/null and b/bin/Debug/net8.0/array_funzioni.pdb differ diff --git a/bin/Debug/net8.0/array_funzioni.runtimeconfig.json b/bin/Debug/net8.0/array_funzioni.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/bin/Debug/net8.0/array_funzioni.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/bin/Debug/net9.0/array_funzioni.dll b/bin/Debug/net9.0/array_funzioni.dll index 18ad6f0..55381ad 100644 Binary files a/bin/Debug/net9.0/array_funzioni.dll and b/bin/Debug/net9.0/array_funzioni.dll differ diff --git a/bin/Debug/net9.0/array_funzioni.pdb b/bin/Debug/net9.0/array_funzioni.pdb index 09ffa6c..b1dde6c 100644 Binary files a/bin/Debug/net9.0/array_funzioni.pdb and b/bin/Debug/net9.0/array_funzioni.pdb differ diff --git a/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..dca70aa --- /dev/null +++ b/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/obj/Debug/net8.0/apphost b/obj/Debug/net8.0/apphost new file mode 100755 index 0000000..6b67251 Binary files /dev/null and b/obj/Debug/net8.0/apphost differ diff --git a/obj/Debug/net8.0/array_funzioni.AssemblyInfo.cs b/obj/Debug/net8.0/array_funzioni.AssemblyInfo.cs new file mode 100644 index 0000000..fc54189 --- /dev/null +++ b/obj/Debug/net8.0/array_funzioni.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("array_funzioni")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+aff158025ffd64c67b8acff27ae876c11cf43330")] +[assembly: System.Reflection.AssemblyProductAttribute("array_funzioni")] +[assembly: System.Reflection.AssemblyTitleAttribute("array_funzioni")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/obj/Debug/net8.0/array_funzioni.AssemblyInfoInputs.cache b/obj/Debug/net8.0/array_funzioni.AssemblyInfoInputs.cache new file mode 100644 index 0000000..258e172 --- /dev/null +++ b/obj/Debug/net8.0/array_funzioni.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +6438fb9972934779e223fac511ff88d3b574524fa9b29ce494ac342009343976 diff --git a/obj/Debug/net8.0/array_funzioni.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net8.0/array_funzioni.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..6e68df8 --- /dev/null +++ b/obj/Debug/net8.0/array_funzioni.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = array_funzioni +build_property.ProjectDir = /home/BrainTheBest5/git/array_funzioni/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 8.0 +build_property.EnableCodeStyleSeverity = diff --git a/obj/Debug/net8.0/array_funzioni.GlobalUsings.g.cs b/obj/Debug/net8.0/array_funzioni.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/Debug/net8.0/array_funzioni.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/obj/Debug/net8.0/array_funzioni.assets.cache b/obj/Debug/net8.0/array_funzioni.assets.cache new file mode 100644 index 0000000..8500c4a Binary files /dev/null and b/obj/Debug/net8.0/array_funzioni.assets.cache differ diff --git a/obj/Debug/net8.0/array_funzioni.csproj.CoreCompileInputs.cache b/obj/Debug/net8.0/array_funzioni.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..262de34 --- /dev/null +++ b/obj/Debug/net8.0/array_funzioni.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +88e06daacd345a3480308b4979effe9b945e521ba30ef294122a4336ea4cadcd diff --git a/obj/Debug/net8.0/array_funzioni.csproj.FileListAbsolute.txt b/obj/Debug/net8.0/array_funzioni.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..b721694 --- /dev/null +++ b/obj/Debug/net8.0/array_funzioni.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +/home/BrainTheBest5/git/array_funzioni/bin/Debug/net8.0/array_funzioni +/home/BrainTheBest5/git/array_funzioni/bin/Debug/net8.0/array_funzioni.deps.json +/home/BrainTheBest5/git/array_funzioni/bin/Debug/net8.0/array_funzioni.runtimeconfig.json +/home/BrainTheBest5/git/array_funzioni/bin/Debug/net8.0/array_funzioni.dll +/home/BrainTheBest5/git/array_funzioni/bin/Debug/net8.0/array_funzioni.pdb +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net8.0/array_funzioni.GeneratedMSBuildEditorConfig.editorconfig +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net8.0/array_funzioni.AssemblyInfoInputs.cache +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net8.0/array_funzioni.AssemblyInfo.cs +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net8.0/array_funzioni.csproj.CoreCompileInputs.cache +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net8.0/array_funzioni.dll +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net8.0/refint/array_funzioni.dll +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net8.0/array_funzioni.pdb +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net8.0/array_funzioni.genruntimeconfig.cache +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net8.0/ref/array_funzioni.dll diff --git a/obj/Debug/net8.0/array_funzioni.dll b/obj/Debug/net8.0/array_funzioni.dll new file mode 100644 index 0000000..a777454 Binary files /dev/null and b/obj/Debug/net8.0/array_funzioni.dll differ diff --git a/obj/Debug/net8.0/array_funzioni.genruntimeconfig.cache b/obj/Debug/net8.0/array_funzioni.genruntimeconfig.cache new file mode 100644 index 0000000..b5ea4bb --- /dev/null +++ b/obj/Debug/net8.0/array_funzioni.genruntimeconfig.cache @@ -0,0 +1 @@ +8b9c729e3fe80e3550c7f9161fa8bda1fed5e95cd95402875f1c6b2af2941a81 diff --git a/obj/Debug/net8.0/array_funzioni.pdb b/obj/Debug/net8.0/array_funzioni.pdb new file mode 100644 index 0000000..eb806dd Binary files /dev/null and b/obj/Debug/net8.0/array_funzioni.pdb differ diff --git a/obj/Debug/net8.0/ref/array_funzioni.dll b/obj/Debug/net8.0/ref/array_funzioni.dll new file mode 100644 index 0000000..2e0e028 Binary files /dev/null and b/obj/Debug/net8.0/ref/array_funzioni.dll differ diff --git a/obj/Debug/net8.0/refint/array_funzioni.dll b/obj/Debug/net8.0/refint/array_funzioni.dll new file mode 100644 index 0000000..2e0e028 Binary files /dev/null and b/obj/Debug/net8.0/refint/array_funzioni.dll differ diff --git a/obj/Debug/net9.0/array_funzioni.AssemblyInfo.cs b/obj/Debug/net9.0/array_funzioni.AssemblyInfo.cs index ba356e0..bab40d7 100644 --- a/obj/Debug/net9.0/array_funzioni.AssemblyInfo.cs +++ b/obj/Debug/net9.0/array_funzioni.AssemblyInfo.cs @@ -13,7 +13,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("array_funzioni")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5550fe97d55be94e738ce8c3cf4a9dfc14391aab")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+aff158025ffd64c67b8acff27ae876c11cf43330")] [assembly: System.Reflection.AssemblyProductAttribute("array_funzioni")] [assembly: System.Reflection.AssemblyTitleAttribute("array_funzioni")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/obj/Debug/net9.0/array_funzioni.AssemblyInfoInputs.cache b/obj/Debug/net9.0/array_funzioni.AssemblyInfoInputs.cache index 915edc2..258e172 100644 --- a/obj/Debug/net9.0/array_funzioni.AssemblyInfoInputs.cache +++ b/obj/Debug/net9.0/array_funzioni.AssemblyInfoInputs.cache @@ -1 +1 @@ -4c7fde40aa9590eb6e46f6c3df76313ded3d5322caad874ec534ac81c51140a1 +6438fb9972934779e223fac511ff88d3b574524fa9b29ce494ac342009343976 diff --git a/obj/Debug/net9.0/array_funzioni.dll b/obj/Debug/net9.0/array_funzioni.dll index 18ad6f0..55381ad 100644 Binary files a/obj/Debug/net9.0/array_funzioni.dll and b/obj/Debug/net9.0/array_funzioni.dll differ diff --git a/obj/Debug/net9.0/array_funzioni.pdb b/obj/Debug/net9.0/array_funzioni.pdb index 09ffa6c..b1dde6c 100644 Binary files a/obj/Debug/net9.0/array_funzioni.pdb and b/obj/Debug/net9.0/array_funzioni.pdb differ diff --git a/obj/Debug/net9.0/ref/array_funzioni.dll b/obj/Debug/net9.0/ref/array_funzioni.dll index 59ce6ea..476f9c6 100644 Binary files a/obj/Debug/net9.0/ref/array_funzioni.dll and b/obj/Debug/net9.0/ref/array_funzioni.dll differ diff --git a/obj/Debug/net9.0/refint/array_funzioni.dll b/obj/Debug/net9.0/refint/array_funzioni.dll index 59ce6ea..476f9c6 100644 Binary files a/obj/Debug/net9.0/refint/array_funzioni.dll and b/obj/Debug/net9.0/refint/array_funzioni.dll differ diff --git a/obj/array_funzioni.csproj.nuget.dgspec.json b/obj/array_funzioni.csproj.nuget.dgspec.json index b5c8310..9da281c 100644 --- a/obj/array_funzioni.csproj.nuget.dgspec.json +++ b/obj/array_funzioni.csproj.nuget.dgspec.json @@ -17,14 +17,14 @@ "/home/BrainTheBest5/.nuget/NuGet/NuGet.Config" ], "originalTargetFrameworks": [ - "net9.0" + "net8.0" ], "sources": { "https://api.nuget.org/v3/index.json": {} }, "frameworks": { - "net9.0": { - "targetAlias": "net9.0", + "net8.0": { + "targetAlias": "net8.0", "projectReferences": {} } }, @@ -41,8 +41,8 @@ "SdkAnalysisLevel": "9.0.100" }, "frameworks": { - "net9.0": { - "targetAlias": "net9.0", + "net8.0": { + "targetAlias": "net8.0", "imports": [ "net461", "net462", @@ -57,7 +57,15 @@ "downloadDependencies": [ { "name": "Microsoft.AspNetCore.App.Ref", - "version": "[9.0.0, 9.0.0]" + "version": "[8.0.11, 8.0.11]" + }, + { + "name": "Microsoft.NETCore.App.Host.linux-x64", + "version": "[8.0.11, 8.0.11]" + }, + { + "name": "Microsoft.NETCore.App.Ref", + "version": "[8.0.11, 8.0.11]" } ], "frameworkReferences": { diff --git a/obj/project.assets.json b/obj/project.assets.json index fdb87eb..0b9692c 100644 --- a/obj/project.assets.json +++ b/obj/project.assets.json @@ -1,11 +1,11 @@ { "version": 3, "targets": { - "net9.0": {} + "net8.0": {} }, "libraries": {}, "projectFileDependencyGroups": { - "net9.0": [] + "net8.0": [] }, "packageFolders": { "/home/BrainTheBest5/.nuget/packages/": {} @@ -23,14 +23,14 @@ "/home/BrainTheBest5/.nuget/NuGet/NuGet.Config" ], "originalTargetFrameworks": [ - "net9.0" + "net8.0" ], "sources": { "https://api.nuget.org/v3/index.json": {} }, "frameworks": { - "net9.0": { - "targetAlias": "net9.0", + "net8.0": { + "targetAlias": "net8.0", "projectReferences": {} } }, @@ -47,8 +47,8 @@ "SdkAnalysisLevel": "9.0.100" }, "frameworks": { - "net9.0": { - "targetAlias": "net9.0", + "net8.0": { + "targetAlias": "net8.0", "imports": [ "net461", "net462", @@ -63,7 +63,15 @@ "downloadDependencies": [ { "name": "Microsoft.AspNetCore.App.Ref", - "version": "[9.0.0, 9.0.0]" + "version": "[8.0.11, 8.0.11]" + }, + { + "name": "Microsoft.NETCore.App.Host.linux-x64", + "version": "[8.0.11, 8.0.11]" + }, + { + "name": "Microsoft.NETCore.App.Ref", + "version": "[8.0.11, 8.0.11]" } ], "frameworkReferences": { diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache index d0141c2..ee91c97 100644 --- a/obj/project.nuget.cache +++ b/obj/project.nuget.cache @@ -1,10 +1,12 @@ { "version": 2, - "dgSpecHash": "23BiATKNC0U=", + "dgSpecHash": "IkySodfBy9A=", "success": true, "projectFilePath": "/home/BrainTheBest5/git/array_funzioni/array_funzioni.csproj", "expectedPackageFiles": [ - "/home/BrainTheBest5/.nuget/packages/microsoft.aspnetcore.app.ref/9.0.0/microsoft.aspnetcore.app.ref.9.0.0.nupkg.sha512" + "/home/BrainTheBest5/.nuget/packages/microsoft.netcore.app.ref/8.0.11/microsoft.netcore.app.ref.8.0.11.nupkg.sha512", + "/home/BrainTheBest5/.nuget/packages/microsoft.aspnetcore.app.ref/8.0.11/microsoft.aspnetcore.app.ref.8.0.11.nupkg.sha512", + "/home/BrainTheBest5/.nuget/packages/microsoft.netcore.app.host.linux-x64/8.0.11/microsoft.netcore.app.host.linux-x64.8.0.11.nupkg.sha512" ], "logs": [] } \ No newline at end of file