Escolar Documentos
Profissional Documentos
Cultura Documentos
if (i > 0)
{
for (int k = 1; k <= z; k++)
{
Console.Write(" ");
}
z += 2;
Console.WriteLine("*");
}
z -= 4;
Console.Write("*");
if (i != size - 1)
{
Console.WriteLine("*");
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assignment_2_code_2
{
class Program
{
public void shape()
{
int x, y, z;
Console.WriteLine("Enter the numbers of rows");
x = int.Parse(Console.ReadLine());
Console.Write("*");
else
Console.Write(" ");
}
Console.WriteLine();
}
}
static void Main(string[] args)
{
Program a = new Program();
a.shape();
Console.ReadKey();
}
}
}