Need help with output custom shape in ConsoleApplication - C#
        Posted  
        
            by SzamDev
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by SzamDev
        
        
        
        Published on 2010-06-06T20:41:53Z
        Indexed on 
            2010/06/06
            20:52 UTC
        
        
        Read the original article
        Hit count: 274
        
c#
|console-application
Hi
I have this shape and I want to output it to ConoleApplication Windows.

I have this code but it doesn't work as I need :
int i,j;
for(i=0;i<5;i++)
{
for(j=5-i;j>0;j--)
Console.WriteLine(" ");
for(j=0;j<=2*i;j++)
Console.WriteLine("*");
Console.WriteLine("\n");
}
Thanks in advance.
EDIT : I am very sorry
© Stack Overflow or respective owner