Opzione 2
This commit is contained in:
20
Program.cs
20
Program.cs
@@ -10,7 +10,7 @@ class Program {
|
||||
do {
|
||||
Console.WriteLine("Scegliere un'opzione:");
|
||||
Console.WriteLine("1. Stampa quadrato pieno");
|
||||
Console.WriteLine("2. Stampa ");
|
||||
Console.WriteLine("2. Stampa quadrato vuoto");
|
||||
Console.WriteLine("3. Stampa ");
|
||||
Console.WriteLine("4. Stampa ");
|
||||
Console.WriteLine("0. Esci");
|
||||
@@ -92,6 +92,22 @@ class Program {
|
||||
}
|
||||
|
||||
static void QuadratoVuoto(uint p_dimensione, char p_unit) {
|
||||
|
||||
for (int i = 1; i <= p_dimensione; i++) {
|
||||
if (i == 1 || i == p_dimensione) {
|
||||
for (int j = 1; j <= p_dimensione; j++) {
|
||||
Console.Write(p_unit);
|
||||
}
|
||||
Console.WriteLine();
|
||||
}
|
||||
else {
|
||||
for (int j = 0; j <= p_dimensione - 2; j++) {
|
||||
if (j == 0 || j == p_dimensione - 2) {
|
||||
Console.Write(p_unit);
|
||||
}
|
||||
Console.Write(' ');
|
||||
}
|
||||
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+1edd4acfec5f4850da5fcba03dc20338275f287b")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2271330afcc714879fddd060be9d9b4c8d23d1a2")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("vacanzeEstive_sezione1")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("vacanzeEstive_sezione1")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
aba26d8b4bb04d93ae53da5629eb72692149f4d8e532dc115761dd67b6e6d72c
|
||||
a7ff05277b169b48ae0ee3771129af062cecaf54cccf9c5174bb421732abf751
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user