Good Day Mr. Sachin Singh
Could you solved this ?
The output is like this:
*******
*****
***
*
Here is my code
int y;
for (int x = 0; x < 7; x++)
{
for (y = 0; y <= x; y++)
{
//if (y==0 || y==x || x==16)
if (y % 2==0)
{
Console.Write("");
}
else
{
Console.Write("*");
}
}
Console.Write("\n");
}