Smart    Lucky

Smart Lucky

  • NA
  • 555
  • 639.6k

Star logic

May 2 2012 8:21 AM

Hi i am trying to make this is it right or wrong...?


XXXX 
X++X 
XXXX 
* * 
**** 
****







class Stars
{
static void Main()
{

for (int i = 1; i <= 1; i++)
{
for (int j = 1; j <= 4; j++)
{
Console.Write("*");
}
Console.WriteLine();
for (int l = 0; l < 4; l++)
{
if (l == 2)
{
Console.WriteLine();
}
Console.Write("* ");
// Console.Write(" *");
}
Console.WriteLine();
for (int j = 1; j <= 4; j++)
{
Console.Write("*");
}

}
Console.WriteLine();
}
}


Answers (1)