Menu e uscita

This commit is contained in:
La Programmatrice Verde 2024-12-27 08:38:14 +01:00
parent 6c0811b572
commit 097f3a4c93
24 changed files with 174 additions and 18 deletions

View File

@ -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();
}
}

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

BIN
bin/Debug/net8.0/array_funzioni_4 Executable file

Binary file not shown.

View File

@ -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": ""
}
}
}

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net8.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]

BIN
obj/Debug/net8.0/apphost Executable file

Binary file not shown.

View File

@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
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.

View File

@ -0,0 +1 @@
18df14bdc7b98b598854d00acc645ac0dd6581fd634c2bbfadde670c61420a84

View File

@ -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 =

View File

@ -0,0 +1,8 @@
// <auto-generated/>
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;

Binary file not shown.

View File

@ -0,0 +1 @@
1848f0eae1ce9cdb5879084d4202fce11480b7f262aa9e3ae41b3bf55b4cfb36

View File

@ -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

Binary file not shown.

View File

@ -0,0 +1 @@
187b823ce741b218aa766e72c802d8bdc6f0c3ee5d25120d14e703a62a0452c5

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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": {

View File

@ -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": {

View File

@ -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": []
}