2
I have a problem in an activity, the activity would be to make an asterisk tree of the type:
*
***
*****
but with my code
for (int i = 0; i <= 5 ; i++)
{
for (int j = 0; j <= i; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
the result is something like this
*
**
***
****
*****
someone can help me?
Print the appropriate amount of spaces before printing the '*'.
– anonimo
Check this out: https://answall.com/q/136861/101
– Maniero