Prima voce menù

This commit is contained in:
La Programmatrice Verde 2024-12-04 09:11:49 +01:00
parent b4d7626ab2
commit 5444cc5d13
20 changed files with 156 additions and 1 deletions

View File

@ -4,6 +4,60 @@ class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
Console.Clear();
int scelta=4, numero=0, divisore=13;
uint dimensione=0;
do{
Console.WriteLine("Scegliere un'opzione:");
Console.WriteLine("1. Insieme di multipli di 13");
Console.WriteLine("2. Insieme di 0 e multipli di 13");
Console.WriteLine("3. Insiemi raddoppiati e triplicati");
Console.WriteLine("0. Esci");
Console.Write("Scelta: ");
scelta=Convert.ToInt32(Console.ReadLine());
switch(scelta){
case 0:
break;
case 1:
Console.Clear();
Console.Write("Quanti numeri inserire? ");
dimensione=Convert.ToUInt32(Console.ReadLine());
int[] array1= new int[dimensione];
for(int i=0; i<dimensione; i++){
Console.Clear();
Console.WriteLine("Inserire il numero " +(i+1)+":");
numero=Convert.ToInt32(Console.ReadLine());
if(numero%divisore==0){
array1[i]=numero;
}
}
Console.Clear();
Console.WriteLine("I numeri inseriti sono: ");
for(int i=0; i<dimensione; i++){
if(array1[i]!=0){
Console.WriteLine(array1[i]);
}
}
Console.WriteLine("Premere invio per continuare");
Console.ReadLine();
Console.Clear();
break;
case 2:
break;
case 3:
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_2 Executable file

Binary file not shown.

View File

@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v9.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v9.0": {
"array_2/1.0.0": {
"runtime": {
"array_2.dll": {}
}
}
}
},
"libraries": {
"array_2/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,12 @@
{
"runtimeOptions": {
"tfm": "net9.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "9.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=v9.0", FrameworkDisplayName = ".NET 9.0")]

BIN
obj/Debug/net9.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_2")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b4d7626ab25ca63582d52acfe26be3fea8143db0")]
[assembly: System.Reflection.AssemblyProductAttribute("array_2")]
[assembly: System.Reflection.AssemblyTitleAttribute("array_2")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generato dalla classe WriteCodeFragment di MSBuild.

View File

@ -0,0 +1 @@
0a8d03ec7b4708add63bec6c82ab0253c5e3f3c0bb27374307b585b8f6e35bbd

View File

@ -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_2
build_property.ProjectDir = /home/BrainTheBest5/git/array_2/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 9.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 @@
6229bede01e1c1f39f37974fc54edbe80e9db104e2fdec3587738b0cb7a6cc57

View File

@ -0,0 +1,14 @@
/home/BrainTheBest5/git/array_2/obj/Debug/net9.0/array_2.GeneratedMSBuildEditorConfig.editorconfig
/home/BrainTheBest5/git/array_2/obj/Debug/net9.0/array_2.AssemblyInfoInputs.cache
/home/BrainTheBest5/git/array_2/obj/Debug/net9.0/array_2.AssemblyInfo.cs
/home/BrainTheBest5/git/array_2/obj/Debug/net9.0/array_2.csproj.CoreCompileInputs.cache
/home/BrainTheBest5/git/array_2/bin/Debug/net9.0/array_2
/home/BrainTheBest5/git/array_2/bin/Debug/net9.0/array_2.deps.json
/home/BrainTheBest5/git/array_2/bin/Debug/net9.0/array_2.runtimeconfig.json
/home/BrainTheBest5/git/array_2/bin/Debug/net9.0/array_2.dll
/home/BrainTheBest5/git/array_2/bin/Debug/net9.0/array_2.pdb
/home/BrainTheBest5/git/array_2/obj/Debug/net9.0/array_2.dll
/home/BrainTheBest5/git/array_2/obj/Debug/net9.0/refint/array_2.dll
/home/BrainTheBest5/git/array_2/obj/Debug/net9.0/array_2.pdb
/home/BrainTheBest5/git/array_2/obj/Debug/net9.0/array_2.genruntimeconfig.cache
/home/BrainTheBest5/git/array_2/obj/Debug/net9.0/ref/array_2.dll

Binary file not shown.

View File

@ -0,0 +1 @@
0ed93086b9720787606dd29351172b5c4a2a847fe78d245e97b5c82b3d63ae90

Binary file not shown.

Binary file not shown.

Binary file not shown.