have to make 4 triangles
*
**
***
****
****
***
**
*
up to 10 lines on each, but to save space i threw down 4, i have those done no problem here is the code i popped to make those happen, this is VB '05 Command App btw.
Sub Main()
Dim Rcounter As Integer = 1 (Rcounter=Rowcounter)
Dim Ccounter As Integer = 1 (Ccounter...ya=ColumnCounter)
Dim Space As Integer = 1 [(not sure if this should be "1" or "nothing", then again im not sure it matters) but this is referring to my question not the above triangles.]
For Rcounter = 1 To 10
For Ccounter = 1 To Rcounter
Console.Write("*")
Next
Console.WriteLine()
Next
Console.WriteLine()
For Rcounter = 1 To 10
For Ccounter = Rcounter To 10
Console.Write("*")
Next
Console.WriteLine()
Next
Console.WriteLine()
Easy and simple ya, ok my "Problem" is the next two,
think of these as full squares not triangles
___*
__**
_***
****
****
_***
__**
___*
Oh like above there are ten rows/columns, the difference if you havent already seen is the SPACES... ugly word... hate it.. evil :twisted:
anyway, need some help on how to do that, also as seen in the above code, i have to use For...Next loops. The problem i was having was being able to make the spaces happen all at once, and, happen before the *'s. If anyone is able to help, besides the fact that your my new hero for the day... ill have to /hug you or something.