diff --git a/Program.cs b/Program.cs
index 2bce624..50804e6 100644
--- a/Program.cs
+++ b/Program.cs
@@ -2,8 +2,45 @@
class Program
{
+ const int dimensione = 10;
static void Main(string[] args)
{
- Console.WriteLine("Hello, World!");
+ Console.Clear();
+ //dichiarazione e inizializzazione variabili
+ int scelta;
+
+ //menu
+ do{
+ Console.WriteLine("Scegliere un'opzione:");
+ Console.WriteLine("1. Stampa zig zag");
+ Console.WriteLine("2. Somma pari dispari");
+ Console.WriteLine("3. Array invertito");
+ Console.WriteLine("4. Tre consecutivi");
+ Console.WriteLine("5. Uno doppio dell'altro");
+ Console.WriteLine("0. Esci");
+ Console.Write("Scelta: ");
+ scelta=Convert.ToInt32(Console.ReadLine());
+
+
+ switch(scelta){
+ case 0:
+ break;
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ default:
+ Console.WriteLine("Errore: scelta non valida");
+ Pausa();
+ break;
+ }
+ }
+ while(scelta!=0);
+ }
+ static void Pausa(){
+ Console.WriteLine("Premere un tasto per continuare. . .");
+ Console.ReadKey();
+ Console.Clear();
}
}
diff --git a/array_funzioni_4.csproj b/array_funzioni_4.csproj
index fd4bd08..2150e37 100644
--- a/array_funzioni_4.csproj
+++ b/array_funzioni_4.csproj
@@ -2,7 +2,7 @@
Exe
- net9.0
+ net8.0
enable
enable
diff --git a/bin/Debug/net8.0/array_funzioni_4 b/bin/Debug/net8.0/array_funzioni_4
new file mode 100755
index 0000000..95cc149
Binary files /dev/null and b/bin/Debug/net8.0/array_funzioni_4 differ
diff --git a/bin/Debug/net8.0/array_funzioni_4.deps.json b/bin/Debug/net8.0/array_funzioni_4.deps.json
new file mode 100644
index 0000000..0d6862c
--- /dev/null
+++ b/bin/Debug/net8.0/array_funzioni_4.deps.json
@@ -0,0 +1,23 @@
+{
+ "runtimeTarget": {
+ "name": ".NETCoreApp,Version=v8.0",
+ "signature": ""
+ },
+ "compilationOptions": {},
+ "targets": {
+ ".NETCoreApp,Version=v8.0": {
+ "array_funzioni_4/1.0.0": {
+ "runtime": {
+ "array_funzioni_4.dll": {}
+ }
+ }
+ }
+ },
+ "libraries": {
+ "array_funzioni_4/1.0.0": {
+ "type": "project",
+ "serviceable": false,
+ "sha512": ""
+ }
+ }
+}
\ No newline at end of file
diff --git a/bin/Debug/net8.0/array_funzioni_4.dll b/bin/Debug/net8.0/array_funzioni_4.dll
new file mode 100644
index 0000000..8bc0714
Binary files /dev/null and b/bin/Debug/net8.0/array_funzioni_4.dll differ
diff --git a/bin/Debug/net8.0/array_funzioni_4.pdb b/bin/Debug/net8.0/array_funzioni_4.pdb
new file mode 100644
index 0000000..77ba4c0
Binary files /dev/null and b/bin/Debug/net8.0/array_funzioni_4.pdb differ
diff --git a/bin/Debug/net8.0/array_funzioni_4.runtimeconfig.json b/bin/Debug/net8.0/array_funzioni_4.runtimeconfig.json
new file mode 100644
index 0000000..becfaea
--- /dev/null
+++ b/bin/Debug/net8.0/array_funzioni_4.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/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..95cc149
Binary files /dev/null and b/obj/Debug/net8.0/apphost differ
diff --git a/obj/Debug/net8.0/array_funzioni_4.AssemblyInfo.cs b/obj/Debug/net8.0/array_funzioni_4.AssemblyInfo.cs
new file mode 100644
index 0000000..b17ffdd
--- /dev/null
+++ b/obj/Debug/net8.0/array_funzioni_4.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_4")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6c0811b572235bda9c94c60c6962e5b6d0e9dea5")]
+[assembly: System.Reflection.AssemblyProductAttribute("array_funzioni_4")]
+[assembly: System.Reflection.AssemblyTitleAttribute("array_funzioni_4")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// Generato dalla classe WriteCodeFragment di MSBuild.
+
diff --git a/obj/Debug/net8.0/array_funzioni_4.AssemblyInfoInputs.cache b/obj/Debug/net8.0/array_funzioni_4.AssemblyInfoInputs.cache
new file mode 100644
index 0000000..86bf484
--- /dev/null
+++ b/obj/Debug/net8.0/array_funzioni_4.AssemblyInfoInputs.cache
@@ -0,0 +1 @@
+18df14bdc7b98b598854d00acc645ac0dd6581fd634c2bbfadde670c61420a84
diff --git a/obj/Debug/net8.0/array_funzioni_4.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net8.0/array_funzioni_4.GeneratedMSBuildEditorConfig.editorconfig
new file mode 100644
index 0000000..6a9d84c
--- /dev/null
+++ b/obj/Debug/net8.0/array_funzioni_4.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_4
+build_property.ProjectDir = /home/BrainTheBest5/git/array_funzioni_4/
+build_property.EnableComHosting =
+build_property.EnableGeneratedComInterfaceComImportInterop =
+build_property.EffectiveAnalysisLevelStyle = 8.0
+build_property.EnableCodeStyleSeverity =
diff --git a/obj/Debug/net8.0/array_funzioni_4.GlobalUsings.g.cs b/obj/Debug/net8.0/array_funzioni_4.GlobalUsings.g.cs
new file mode 100644
index 0000000..8578f3d
--- /dev/null
+++ b/obj/Debug/net8.0/array_funzioni_4.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_4.assets.cache b/obj/Debug/net8.0/array_funzioni_4.assets.cache
new file mode 100644
index 0000000..b6d7cd1
Binary files /dev/null and b/obj/Debug/net8.0/array_funzioni_4.assets.cache differ
diff --git a/obj/Debug/net8.0/array_funzioni_4.csproj.CoreCompileInputs.cache b/obj/Debug/net8.0/array_funzioni_4.csproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..5fa12c9
--- /dev/null
+++ b/obj/Debug/net8.0/array_funzioni_4.csproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+1848f0eae1ce9cdb5879084d4202fce11480b7f262aa9e3ae41b3bf55b4cfb36
diff --git a/obj/Debug/net8.0/array_funzioni_4.csproj.FileListAbsolute.txt b/obj/Debug/net8.0/array_funzioni_4.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..0f9f28f
--- /dev/null
+++ b/obj/Debug/net8.0/array_funzioni_4.csproj.FileListAbsolute.txt
@@ -0,0 +1,14 @@
+/home/BrainTheBest5/git/array_funzioni_4/bin/Debug/net8.0/array_funzioni_4
+/home/BrainTheBest5/git/array_funzioni_4/bin/Debug/net8.0/array_funzioni_4.deps.json
+/home/BrainTheBest5/git/array_funzioni_4/bin/Debug/net8.0/array_funzioni_4.runtimeconfig.json
+/home/BrainTheBest5/git/array_funzioni_4/bin/Debug/net8.0/array_funzioni_4.dll
+/home/BrainTheBest5/git/array_funzioni_4/bin/Debug/net8.0/array_funzioni_4.pdb
+/home/BrainTheBest5/git/array_funzioni_4/obj/Debug/net8.0/array_funzioni_4.GeneratedMSBuildEditorConfig.editorconfig
+/home/BrainTheBest5/git/array_funzioni_4/obj/Debug/net8.0/array_funzioni_4.AssemblyInfoInputs.cache
+/home/BrainTheBest5/git/array_funzioni_4/obj/Debug/net8.0/array_funzioni_4.AssemblyInfo.cs
+/home/BrainTheBest5/git/array_funzioni_4/obj/Debug/net8.0/array_funzioni_4.csproj.CoreCompileInputs.cache
+/home/BrainTheBest5/git/array_funzioni_4/obj/Debug/net8.0/array_funzioni_4.dll
+/home/BrainTheBest5/git/array_funzioni_4/obj/Debug/net8.0/refint/array_funzioni_4.dll
+/home/BrainTheBest5/git/array_funzioni_4/obj/Debug/net8.0/array_funzioni_4.pdb
+/home/BrainTheBest5/git/array_funzioni_4/obj/Debug/net8.0/array_funzioni_4.genruntimeconfig.cache
+/home/BrainTheBest5/git/array_funzioni_4/obj/Debug/net8.0/ref/array_funzioni_4.dll
diff --git a/obj/Debug/net8.0/array_funzioni_4.dll b/obj/Debug/net8.0/array_funzioni_4.dll
new file mode 100644
index 0000000..8bc0714
Binary files /dev/null and b/obj/Debug/net8.0/array_funzioni_4.dll differ
diff --git a/obj/Debug/net8.0/array_funzioni_4.genruntimeconfig.cache b/obj/Debug/net8.0/array_funzioni_4.genruntimeconfig.cache
new file mode 100644
index 0000000..2d9d8f2
--- /dev/null
+++ b/obj/Debug/net8.0/array_funzioni_4.genruntimeconfig.cache
@@ -0,0 +1 @@
+187b823ce741b218aa766e72c802d8bdc6f0c3ee5d25120d14e703a62a0452c5
diff --git a/obj/Debug/net8.0/array_funzioni_4.pdb b/obj/Debug/net8.0/array_funzioni_4.pdb
new file mode 100644
index 0000000..77ba4c0
Binary files /dev/null and b/obj/Debug/net8.0/array_funzioni_4.pdb differ
diff --git a/obj/Debug/net8.0/ref/array_funzioni_4.dll b/obj/Debug/net8.0/ref/array_funzioni_4.dll
new file mode 100644
index 0000000..4d7e003
Binary files /dev/null and b/obj/Debug/net8.0/ref/array_funzioni_4.dll differ
diff --git a/obj/Debug/net8.0/refint/array_funzioni_4.dll b/obj/Debug/net8.0/refint/array_funzioni_4.dll
new file mode 100644
index 0000000..4d7e003
Binary files /dev/null and b/obj/Debug/net8.0/refint/array_funzioni_4.dll differ
diff --git a/obj/array_funzioni_4.csproj.nuget.dgspec.json b/obj/array_funzioni_4.csproj.nuget.dgspec.json
index 4b5bae8..754154b 100644
--- a/obj/array_funzioni_4.csproj.nuget.dgspec.json
+++ b/obj/array_funzioni_4.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 5f92c1c..a81c864 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 53439b5..3e51d89 100644
--- a/obj/project.nuget.cache
+++ b/obj/project.nuget.cache
@@ -1,10 +1,12 @@
{
"version": 2,
- "dgSpecHash": "LJrMLe12Lus=",
+ "dgSpecHash": "oyvHW86QmUk=",
"success": true,
"projectFilePath": "/home/BrainTheBest5/git/array_funzioni_4/array_funzioni_4.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