kimmie87 0 Newbie Poster

I am practicing Visual Studio (2005) and I ran on to this problem, a Pascal Triangle. I don't kinda get how to produce an output like this:

1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 15 6 1

..and this one:

1
2 4
3 6 9
4 8 12 16
5 10 15 20 25
6 12 18 24 36 42


..and so on using repetition structures such as For..Next, While..End While, Do While..Loop, and If Else..End If. I'm really trying to code it in literally paper since I don't have my own PC and only when I'm at school that I can practice it. Can you help me providing the code using those repetition structures?

Thank you to those who will reply.