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();
}
}

VulpesPosted May 2, 2012, 10:33 AM
****
* *
* *
****
This isn't the same as what you said you wanted though TBH neither of these patterns looks much like a star to me!
Unless you've been told otherwise, I wouldn't bother trying to do this using loops - I'd just print the entire lines, which is much easier: