Menù
This commit is contained in:
parent
df4ff53aa1
commit
280a070522
67
Program.cs
67
Program.cs
@ -4,6 +4,71 @@ class Program
|
|||||||
{
|
{
|
||||||
static void Main(string[] args)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
bin/Debug/net9.0/array_funzioni
Executable file
BIN
bin/Debug/net9.0/array_funzioni
Executable file
Binary file not shown.
23
bin/Debug/net9.0/array_funzioni.deps.json
Normal file
23
bin/Debug/net9.0/array_funzioni.deps.json
Normal file
@ -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": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
bin/Debug/net9.0/array_funzioni.dll
Normal file
BIN
bin/Debug/net9.0/array_funzioni.dll
Normal file
Binary file not shown.
BIN
bin/Debug/net9.0/array_funzioni.pdb
Normal file
BIN
bin/Debug/net9.0/array_funzioni.pdb
Normal file
Binary file not shown.
12
bin/Debug/net9.0/array_funzioni.runtimeconfig.json
Normal file
12
bin/Debug/net9.0/array_funzioni.runtimeconfig.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"runtimeOptions": {
|
||||||
|
"tfm": "net9.0",
|
||||||
|
"framework": {
|
||||||
|
"name": "Microsoft.NETCore.App",
|
||||||
|
"version": "9.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=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
||||||
BIN
obj/Debug/net9.0/apphost
Executable file
BIN
obj/Debug/net9.0/apphost
Executable file
Binary file not shown.
22
obj/Debug/net9.0/array_funzioni.AssemblyInfo.cs
Normal file
22
obj/Debug/net9.0/array_funzioni.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")]
|
||||||
|
[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.
|
||||||
|
|
||||||
1
obj/Debug/net9.0/array_funzioni.AssemblyInfoInputs.cache
Normal file
1
obj/Debug/net9.0/array_funzioni.AssemblyInfoInputs.cache
Normal file
@ -0,0 +1 @@
|
|||||||
|
981e234f0ec2f9999d97dfb2279278d599fe720809ee2e647dd1fb9ebf3ac9ba
|
||||||
@ -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 =
|
||||||
8
obj/Debug/net9.0/array_funzioni.GlobalUsings.g.cs
Normal file
8
obj/Debug/net9.0/array_funzioni.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/net9.0/array_funzioni.assets.cache
Normal file
BIN
obj/Debug/net9.0/array_funzioni.assets.cache
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
503b0495e0fc431a13b459729fd5ec9b0f390243dcd45fad1d49b1950465cbb5
|
||||||
14
obj/Debug/net9.0/array_funzioni.csproj.FileListAbsolute.txt
Normal file
14
obj/Debug/net9.0/array_funzioni.csproj.FileListAbsolute.txt
Normal file
@ -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
|
||||||
BIN
obj/Debug/net9.0/array_funzioni.dll
Normal file
BIN
obj/Debug/net9.0/array_funzioni.dll
Normal file
Binary file not shown.
1
obj/Debug/net9.0/array_funzioni.genruntimeconfig.cache
Normal file
1
obj/Debug/net9.0/array_funzioni.genruntimeconfig.cache
Normal file
@ -0,0 +1 @@
|
|||||||
|
189dad6b36f65937f53e0f2ca50f4e563f644e83b1bb30d1b234fd5f1bd38bb8
|
||||||
BIN
obj/Debug/net9.0/array_funzioni.pdb
Normal file
BIN
obj/Debug/net9.0/array_funzioni.pdb
Normal file
Binary file not shown.
BIN
obj/Debug/net9.0/ref/array_funzioni.dll
Normal file
BIN
obj/Debug/net9.0/ref/array_funzioni.dll
Normal file
Binary file not shown.
BIN
obj/Debug/net9.0/refint/array_funzioni.dll
Normal file
BIN
obj/Debug/net9.0/refint/array_funzioni.dll
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user