int n=6;
string a=null;
for(int i=0;i<=n;i++){
Console.WriteLine("{0,"+n+"}",a+="#");
}
Any one can explain what it (+n+
)
actually doing in this code?
Why it's not printing the value of n instead spaces.
I am new and i'm learning c#.