From 88a3a81dc5c585f0e44e1de67a04fcc0176c2248 Mon Sep 17 00:00:00 2001 From: La Programmatrice Verde Date: Fri, 10 Jan 2025 08:34:06 +0100 Subject: [PATCH] =?UTF-8?q?Men=C3=B9=20e=20opzione=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index f81bfcb..6b4c190 100644 --- a/Program.cs +++ b/Program.cs @@ -4,6 +4,28 @@ class Program { static void Main(string[] args) { - Console.WriteLine("Hello, World!"); + //dichiarazione variabili + int scelta; + //menu + do { + Console.WriteLine("Scegliere un'opzione:"): + Console.WriteLine("1. Tutti positivi e pari"); + Console.WriteLine("2. Continua fino"); + Console.WriteLine("3. Positivo e negativo"); + Console.WriteLine("4. Media multipli di 3"); + 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: + } + } + while (scelta != 0); } }