User Profile
Collapse
-
Sorry. I apologize. Thanks though.... -
I'm using C#, but from what I understand, they are very similar.
So far, I have:
for (int i = 0; i < size; i++)
{
for (int n = 0; n < i; n++)
{
Console.Write(" *");
}
Console.Write(" ");
Console.Write(" \n");
}
Right now, it's just a tree but it's left-justified. I have a feeling...Leave a comment:
-
Generating a Christmas Tree in C++/C#
Using for loops, how would you generate a Christmas Tree using *'s. Also, the size depends on the user's input (size). Any help would be greatly appreciated, as my grade depends on it.
No activity results to display
Show More
Leave a comment: