Prima opzione
This commit is contained in:
parent
1edd4acfec
commit
6bf5b51f1b
21
Program.cs
21
Program.cs
@ -6,10 +6,10 @@ class Program {
|
||||
int scelta = -1;
|
||||
do {
|
||||
Console.WriteLine("Scegliere un'opzione:");
|
||||
Console.WriteLine("1. ");
|
||||
Console.WriteLine("2. ");
|
||||
Console.WriteLine("3. ");
|
||||
Console.WriteLine("4. ");
|
||||
Console.WriteLine("1. Stampa quadrato pieno");
|
||||
Console.WriteLine("2. Stampa ");
|
||||
Console.WriteLine("3. Stampa ");
|
||||
Console.WriteLine("4. Stampa ");
|
||||
Console.WriteLine("0. Esci");
|
||||
Console.Write("Scelta: ");
|
||||
|
||||
@ -20,7 +20,7 @@ class Program {
|
||||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
Console.WriteLine(Dimensione());
|
||||
QuadratoPieno(Dimensione());
|
||||
Pausa();
|
||||
break;
|
||||
case 2:
|
||||
@ -76,4 +76,15 @@ class Program {
|
||||
} while (showErrorMessage);
|
||||
return ritorno;
|
||||
}
|
||||
|
||||
static void QuadratoPieno(uint p_dimensione) {
|
||||
char unit = '*'; //unità usata per stampare il quadrato
|
||||
|
||||
for (int i = 1; i <= p_dimensione; i++) {
|
||||
for (int j = 1; j <= p_dimensione; j++) {
|
||||
Console.Write(unit);
|
||||
}
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("vacanzeEstive_sezione1")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+482655570f3eafb925e3891c71b8ca439a2f21de")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1edd4acfec5f4850da5fcba03dc20338275f287b")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("vacanzeEstive_sezione1")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("vacanzeEstive_sezione1")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@ -1 +1 @@
|
||||
1eeb6ff89f5b94b429cb84477f8d11d2ea7cb2cdd0a50be434aa675ca13d0e04
|
||||
aba26d8b4bb04d93ae53da5629eb72692149f4d8e532dc115761dd67b6e6d72c
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user