[Plain]
# Include <stdio. h>
Int main ()
{
Int j, I, n;
While (scanf ("% d", & n), n! = 0)
{
For (I = 0; I <= n/2; I ++) // print the previous part
{
For (j = 0; j <n; j ++)
{
If (j> = n/2-i & j <= n/2 + I) // print the asterisk
{
Printf ("*");
}
Else if (j <n/2-i)
{
Printf ("");
}
}
Printf ("\ n ");
}
For (I = 0; I <n/2; I ++) // print the following part
{
For (j = 0; j <n; j ++)
{
If (j> I & j <n-i-1) // print the asterisk
{
Printf ("*");
}
Else if (j <= I)
{
Printf ("");
}
}
Printf ("\ n ");
}
}
Return 0;
}
# Include <stdio. h>
Int main ()
{
Int j, I, n;
While (scanf ("% d", & n), n! = 0)
{
For (I = 0; I <= n/2; I ++) // print the previous part
{
For (j = 0; j <n; j ++)
{
If (j> = n/2-i & j <= n/2 + I) // print the asterisk
{
Printf ("*");
}
Else if (j <n/2-i)
{
Printf ("");
}
}
Printf ("\ n ");
}
For (I = 0; I <n/2; I ++) // print the following part
{
For (j = 0; j <n; j ++)
{
If (j> I & j <n-i-1) // print the asterisk
{
Printf ("*");
}
Else if (j <= I)
{
Printf ("");
}
}
Printf ("\ n ");
}
}
Return 0;
}