Menu e uscita
This commit is contained in:
parent
6c0811b572
commit
097f3a4c93
39
Program.cs
39
Program.cs
@ -2,8 +2,45 @@
|
|||||||
|
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
|
const int dimensione = 10;
|
||||||
static void Main(string[] args)
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
BIN
bin/Debug/net8.0/array_funzioni_4
Executable file
BIN
bin/Debug/net8.0/array_funzioni_4
Executable file
Binary file not shown.
23
bin/Debug/net8.0/array_funzioni_4.deps.json
Normal file
23
bin/Debug/net8.0/array_funzioni_4.deps.json
Normal 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": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
bin/Debug/net8.0/array_funzioni_4.dll
Normal file
BIN
bin/Debug/net8.0/array_funzioni_4.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net8.0/array_funzioni_4.pdb
Normal file
BIN
bin/Debug/net8.0/array_funzioni_4.pdb
Normal file
Binary file not shown.
12
bin/Debug/net8.0/array_funzioni_4.runtimeconfig.json
Normal file
12
bin/Debug/net8.0/array_funzioni_4.runtimeconfig.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "net8.0",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "8.0.0"
|
||||||
|
},
|
||||||
|
"configProperties": {
|
||||||
|
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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
BIN
obj/Debug/net8.0/apphost
Executable file
Binary file not shown.
22
obj/Debug/net8.0/array_funzioni_4.AssemblyInfo.cs
Normal file
22
obj/Debug/net8.0/array_funzioni_4.AssemblyInfo.cs
Normal 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.
|
||||||
|
|
||||||
@ -0,0 +1 @@
|
|||||||
|
18df14bdc7b98b598854d00acc645ac0dd6581fd634c2bbfadde670c61420a84
|
||||||
@ -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 =
|
||||||
8
obj/Debug/net8.0/array_funzioni_4.GlobalUsings.g.cs
Normal file
8
obj/Debug/net8.0/array_funzioni_4.GlobalUsings.g.cs
Normal 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;
|
||||||
BIN
obj/Debug/net8.0/array_funzioni_4.assets.cache
Normal file
BIN
obj/Debug/net8.0/array_funzioni_4.assets.cache
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
1848f0eae1ce9cdb5879084d4202fce11480b7f262aa9e3ae41b3bf55b4cfb36
|
||||||
@ -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
|
||||||
BIN
obj/Debug/net8.0/array_funzioni_4.dll
Normal file
BIN
obj/Debug/net8.0/array_funzioni_4.dll
Normal file
Binary file not shown.
1
obj/Debug/net8.0/array_funzioni_4.genruntimeconfig.cache
Normal file
1
obj/Debug/net8.0/array_funzioni_4.genruntimeconfig.cache
Normal file
@ -0,0 +1 @@
|
|||||||
|
187b823ce741b218aa766e72c802d8bdc6f0c3ee5d25120d14e703a62a0452c5
|
||||||
BIN
obj/Debug/net8.0/array_funzioni_4.pdb
Normal file
BIN
obj/Debug/net8.0/array_funzioni_4.pdb
Normal file
Binary file not shown.
BIN
obj/Debug/net8.0/ref/array_funzioni_4.dll
Normal file
BIN
obj/Debug/net8.0/ref/array_funzioni_4.dll
Normal file
Binary file not shown.
BIN
obj/Debug/net8.0/refint/array_funzioni_4.dll
Normal file
BIN
obj/Debug/net8.0/refint/array_funzioni_4.dll
Normal file
Binary file not shown.
@ -17,14 +17,14 @@
|
|||||||
"/home/BrainTheBest5/.nuget/NuGet/NuGet.Config"
|
"/home/BrainTheBest5/.nuget/NuGet/NuGet.Config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
"net9.0"
|
"net8.0"
|
||||||
],
|
],
|
||||||
"sources": {
|
"sources": {
|
||||||
"https://api.nuget.org/v3/index.json": {}
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net9.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net9.0",
|
"targetAlias": "net8.0",
|
||||||
"projectReferences": {}
|
"projectReferences": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -41,8 +41,8 @@
|
|||||||
"SdkAnalysisLevel": "9.0.100"
|
"SdkAnalysisLevel": "9.0.100"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net9.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net9.0",
|
"targetAlias": "net8.0",
|
||||||
"imports": [
|
"imports": [
|
||||||
"net461",
|
"net461",
|
||||||
"net462",
|
"net462",
|
||||||
@ -57,7 +57,15 @@
|
|||||||
"downloadDependencies": [
|
"downloadDependencies": [
|
||||||
{
|
{
|
||||||
"name": "Microsoft.AspNetCore.App.Ref",
|
"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": {
|
"frameworkReferences": {
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"targets": {
|
"targets": {
|
||||||
"net9.0": {}
|
"net8.0": {}
|
||||||
},
|
},
|
||||||
"libraries": {},
|
"libraries": {},
|
||||||
"projectFileDependencyGroups": {
|
"projectFileDependencyGroups": {
|
||||||
"net9.0": []
|
"net8.0": []
|
||||||
},
|
},
|
||||||
"packageFolders": {
|
"packageFolders": {
|
||||||
"/home/BrainTheBest5/.nuget/packages/": {}
|
"/home/BrainTheBest5/.nuget/packages/": {}
|
||||||
@ -23,14 +23,14 @@
|
|||||||
"/home/BrainTheBest5/.nuget/NuGet/NuGet.Config"
|
"/home/BrainTheBest5/.nuget/NuGet/NuGet.Config"
|
||||||
],
|
],
|
||||||
"originalTargetFrameworks": [
|
"originalTargetFrameworks": [
|
||||||
"net9.0"
|
"net8.0"
|
||||||
],
|
],
|
||||||
"sources": {
|
"sources": {
|
||||||
"https://api.nuget.org/v3/index.json": {}
|
"https://api.nuget.org/v3/index.json": {}
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net9.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net9.0",
|
"targetAlias": "net8.0",
|
||||||
"projectReferences": {}
|
"projectReferences": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -47,8 +47,8 @@
|
|||||||
"SdkAnalysisLevel": "9.0.100"
|
"SdkAnalysisLevel": "9.0.100"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net9.0": {
|
"net8.0": {
|
||||||
"targetAlias": "net9.0",
|
"targetAlias": "net8.0",
|
||||||
"imports": [
|
"imports": [
|
||||||
"net461",
|
"net461",
|
||||||
"net462",
|
"net462",
|
||||||
@ -63,7 +63,15 @@
|
|||||||
"downloadDependencies": [
|
"downloadDependencies": [
|
||||||
{
|
{
|
||||||
"name": "Microsoft.AspNetCore.App.Ref",
|
"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": {
|
"frameworkReferences": {
|
||||||
|
|||||||
@ -1,10 +1,12 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "LJrMLe12Lus=",
|
"dgSpecHash": "oyvHW86QmUk=",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "/home/BrainTheBest5/git/array_funzioni_4/array_funzioni_4.csproj",
|
"projectFilePath": "/home/BrainTheBest5/git/array_funzioni_4/array_funzioni_4.csproj",
|
||||||
"expectedPackageFiles": [
|
"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": []
|
"logs": []
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user