diff --git a/Program.cs b/Program.cs index 5fe48db..28dee8d 100644 --- a/Program.cs +++ b/Program.cs @@ -4,6 +4,71 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello, World!"); + Console.Clear(); + //dichiarazione e inizializzazione variabili + int scelta=0; + const int dimensione=200; + + //menĂ¹ + do{ + Console.WriteLine("Scegliere un'opzione:"); + Console.WriteLine("1. Crea un'insieme di numeri"); + Console.WriteLine("2. Mostra insieme di numeri"); + Console.WriteLine("3. Calcolo media dei numeri"); + Console.WriteLine("4. Mostra multipli di 7"); + Console.WriteLine("5. Dividi dei numeri tra pari e dispari"); + Console.WriteLine("6. Mostra l'insieme dei numeri pari e dispari"); + Console.WriteLine("7. Intersezione di due insiemi"); + Console.WriteLine("8. Due insiemi mischiati"); + Console.WriteLine("9. Altri due insiemi mischiati diversamente"); + Console.WriteLine("10. Ancora altri due insiemi mischiati"); + Console.WriteLine("0. Esci"); + Console.Write("Scelta: "); + scelta=Convert.ToInt32(Console.ReadLine()); + + + switch (scelta){ + case 0: + Console.Clear(); + break; + case 1: + Console.Clear(); + break; + case 2: + Console.Clear(); + break; + case 3: + Console.Clear(); + break; + case 4: + Console.Clear(); + break; + case 5: + Console.Clear(); + break; + case 6: + Console.Clear(); + break; + case 7: + Console.Clear(); + break; + case 8: + Console.Clear(); + break; + case 9: + Console.Clear(); + break; + case 10: + Console.Clear(); + break; + default: + Console.WriteLine("Scelta non valida"); + Console.WriteLine("Premere invio per continuare. . ."); + Console.ReadLine(); + Console.Clear(); + break; + } + } + while (scelta != 0); } } diff --git a/bin/Debug/net9.0/array_funzioni b/bin/Debug/net9.0/array_funzioni new file mode 100755 index 0000000..deb2903 Binary files /dev/null and b/bin/Debug/net9.0/array_funzioni differ diff --git a/bin/Debug/net9.0/array_funzioni.deps.json b/bin/Debug/net9.0/array_funzioni.deps.json new file mode 100644 index 0000000..db77a23 --- /dev/null +++ b/bin/Debug/net9.0/array_funzioni.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v9.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v9.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/net9.0/array_funzioni.dll b/bin/Debug/net9.0/array_funzioni.dll new file mode 100644 index 0000000..721afa6 Binary files /dev/null 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 new file mode 100644 index 0000000..c27a7ca Binary files /dev/null and b/bin/Debug/net9.0/array_funzioni.pdb differ diff --git a/bin/Debug/net9.0/array_funzioni.runtimeconfig.json b/bin/Debug/net9.0/array_funzioni.runtimeconfig.json new file mode 100644 index 0000000..b19c3c8 --- /dev/null +++ b/bin/Debug/net9.0/array_funzioni.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net9.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "9.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs new file mode 100644 index 0000000..9e76325 --- /dev/null +++ b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")] diff --git a/obj/Debug/net9.0/apphost b/obj/Debug/net9.0/apphost new file mode 100755 index 0000000..deb2903 Binary files /dev/null and b/obj/Debug/net9.0/apphost differ diff --git a/obj/Debug/net9.0/array_funzioni.AssemblyInfo.cs b/obj/Debug/net9.0/array_funzioni.AssemblyInfo.cs new file mode 100644 index 0000000..35a1c4e --- /dev/null +++ b/obj/Debug/net9.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+df4ff53aa1976cd60a22e37f67f23d039733f4e0")] +[assembly: System.Reflection.AssemblyProductAttribute("array_funzioni")] +[assembly: System.Reflection.AssemblyTitleAttribute("array_funzioni")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generato dalla classe WriteCodeFragment di MSBuild. + diff --git a/obj/Debug/net9.0/array_funzioni.AssemblyInfoInputs.cache b/obj/Debug/net9.0/array_funzioni.AssemblyInfoInputs.cache new file mode 100644 index 0000000..6a12909 --- /dev/null +++ b/obj/Debug/net9.0/array_funzioni.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +981e234f0ec2f9999d97dfb2279278d599fe720809ee2e647dd1fb9ebf3ac9ba diff --git a/obj/Debug/net9.0/array_funzioni.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net9.0/array_funzioni.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..06aea5e --- /dev/null +++ b/obj/Debug/net9.0/array_funzioni.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net9.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 = 9.0 +build_property.EnableCodeStyleSeverity = diff --git a/obj/Debug/net9.0/array_funzioni.GlobalUsings.g.cs b/obj/Debug/net9.0/array_funzioni.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/obj/Debug/net9.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/net9.0/array_funzioni.assets.cache b/obj/Debug/net9.0/array_funzioni.assets.cache new file mode 100644 index 0000000..7a05c33 Binary files /dev/null and b/obj/Debug/net9.0/array_funzioni.assets.cache differ diff --git a/obj/Debug/net9.0/array_funzioni.csproj.CoreCompileInputs.cache b/obj/Debug/net9.0/array_funzioni.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..2043997 --- /dev/null +++ b/obj/Debug/net9.0/array_funzioni.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +503b0495e0fc431a13b459729fd5ec9b0f390243dcd45fad1d49b1950465cbb5 diff --git a/obj/Debug/net9.0/array_funzioni.csproj.FileListAbsolute.txt b/obj/Debug/net9.0/array_funzioni.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..fd43e33 --- /dev/null +++ b/obj/Debug/net9.0/array_funzioni.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net9.0/array_funzioni.GeneratedMSBuildEditorConfig.editorconfig +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net9.0/array_funzioni.AssemblyInfoInputs.cache +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net9.0/array_funzioni.AssemblyInfo.cs +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net9.0/array_funzioni.csproj.CoreCompileInputs.cache +/home/BrainTheBest5/git/array_funzioni/bin/Debug/net9.0/array_funzioni +/home/BrainTheBest5/git/array_funzioni/bin/Debug/net9.0/array_funzioni.deps.json +/home/BrainTheBest5/git/array_funzioni/bin/Debug/net9.0/array_funzioni.runtimeconfig.json +/home/BrainTheBest5/git/array_funzioni/bin/Debug/net9.0/array_funzioni.dll +/home/BrainTheBest5/git/array_funzioni/bin/Debug/net9.0/array_funzioni.pdb +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net9.0/array_funzioni.dll +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net9.0/refint/array_funzioni.dll +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net9.0/array_funzioni.pdb +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net9.0/array_funzioni.genruntimeconfig.cache +/home/BrainTheBest5/git/array_funzioni/obj/Debug/net9.0/ref/array_funzioni.dll diff --git a/obj/Debug/net9.0/array_funzioni.dll b/obj/Debug/net9.0/array_funzioni.dll new file mode 100644 index 0000000..721afa6 Binary files /dev/null and b/obj/Debug/net9.0/array_funzioni.dll differ diff --git a/obj/Debug/net9.0/array_funzioni.genruntimeconfig.cache b/obj/Debug/net9.0/array_funzioni.genruntimeconfig.cache new file mode 100644 index 0000000..a366943 --- /dev/null +++ b/obj/Debug/net9.0/array_funzioni.genruntimeconfig.cache @@ -0,0 +1 @@ +189dad6b36f65937f53e0f2ca50f4e563f644e83b1bb30d1b234fd5f1bd38bb8 diff --git a/obj/Debug/net9.0/array_funzioni.pdb b/obj/Debug/net9.0/array_funzioni.pdb new file mode 100644 index 0000000..c27a7ca Binary files /dev/null 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 new file mode 100644 index 0000000..316f5ea Binary files /dev/null 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 new file mode 100644 index 0000000..316f5ea Binary files /dev/null and b/obj/Debug/net9.0/refint/array_funzioni.dll differ